From: scottmk Date: Mon, 2 Feb 2009 13:39:08 +0000 (+0000) Subject: eplace the OSRF_METHOD_VERIFY_CONTEXT macro with an X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=27ec0a5940aec5496ae46075ae66f9072a66d016;p=opensrf%2Fbjwebb.git eplace the OSRF_METHOD_VERIFY_CONTEXT macro with an 2 equivalent call to the osrfMethodVerifyContext function. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1650 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/c-apps/osrf_version.c b/src/c-apps/osrf_version.c index dbe845b..d7748fe 100644 --- a/src/c-apps/osrf_version.c +++ b/src/c-apps/osrf_version.c @@ -30,8 +30,10 @@ int osrfAppChildInit() { } 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);