2 equivalent call to the osrfMethodVerifyContext function.
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1650
9efc2488-bf62-4759-914b-
345cdb29e865
}
int osrfVersion( osrfMethodContext* ctx ) {
}
int osrfVersion( osrfMethodContext* ctx ) {
-
- OSRF_METHOD_VERIFY_CONTEXT(ctx);
+ if( osrfMethodVerifyContext( ctx ) ) {
+ osrfLogError( OSRF_LOG_MARK, "Invalid method context" );
+ return -1;
+ }
/* First, see if the data is in the cache */
char* json = jsonObjectToJSON(ctx->params);
/* First, see if the data is in the cache */
char* json = jsonObjectToJSON(ctx->params);