From f80c0d4cdb9d67f1d15037983dd612398e029c1c Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 1 Mar 2005 21:46:54 +0000 Subject: [PATCH] sanity checking on request complete git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@139 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libstack/osrf_app_session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) */ -- 2.11.0