From: erickson Date: Tue, 1 Mar 2005 21:46:54 +0000 (+0000) Subject: sanity checking on request complete X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f80c0d4cdb9d67f1d15037983dd612398e029c1c;p=opensrf%2Fbjwebb.git sanity checking on request complete git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@139 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/osrf_app_session.c b/src/libstack/osrf_app_session.c index 59b9015..8acba7e 100644 --- a/src/libstack/osrf_app_session.c +++ b/src/libstack/osrf_app_session.c @@ -367,7 +367,9 @@ int osrf_app_session_request_complete( osrf_app_session* session, int request_id if(session == NULL) return 0; osrf_app_request* req = _osrf_app_session_get_request( session, request_id ); - return req->complete; + if(req) + return req->complete; + return 0; } /** Returns the app_request with the given request_id (request_id) */