From 3a16847705f5648372d547b546d68e4a64aaccb8 Mon Sep 17 00:00:00 2001 From: scottmk Date: Mon, 2 Feb 2009 13:32:57 +0000 Subject: [PATCH] Replace 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@1649 9efc2488-bf62-4759-914b-345cdb29e865 --- src/c-apps/osrf_math.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/c-apps/osrf_math.c b/src/c-apps/osrf_math.c index df44afb..ea90947 100644 --- a/src/c-apps/osrf_math.c +++ b/src/c-apps/osrf_math.c @@ -54,8 +54,10 @@ void osrfAppChildExit() { int osrfMathRun( osrfMethodContext* ctx ) { - - OSRF_METHOD_VERIFY_CONTEXT(ctx); /* see osrf_application.h */ + if( osrfMethodVerifyContext( ctx ) ) { + osrfLogError( OSRF_LOG_MARK, "Invalid method context" ); + return -1; + } /* collect the request params */ const jsonObject* x = jsonObjectGetIndex(ctx->params, 0); -- 2.43.2