[Opensrf-commits] r1650 - trunk/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 2 08:39:09 EST 2009


Author: scottmk
Date: 2009-02-02 08:39:08 -0500 (Mon, 02 Feb 2009)
New Revision: 1650

Modified:
   trunk/src/c-apps/osrf_version.c
Log:
eplace the OSRF_METHOD_VERIFY_CONTEXT macro with an
2 equivalent call to the osrfMethodVerifyContext function.


Modified: trunk/src/c-apps/osrf_version.c
===================================================================
--- trunk/src/c-apps/osrf_version.c	2009-02-02 13:32:57 UTC (rev 1649)
+++ trunk/src/c-apps/osrf_version.c	2009-02-02 13:39:08 UTC (rev 1650)
@@ -30,9 +30,11 @@
 }
 
 int osrfVersion( osrfMethodContext* ctx ) {
+	if( osrfMethodVerifyContext( ctx ) ) {
+		osrfLogError( OSRF_LOG_MARK,  "Invalid method context" );
+		return -1;
+	}
 
-	OSRF_METHOD_VERIFY_CONTEXT(ctx); 
-
 	/* First, see if the data is in the cache */
 	char* json = jsonObjectToJSON(ctx->params);
 	char* paramsmd5 = md5sum(json);



More information about the opensrf-commits mailing list