From: erickson Date: Mon, 7 Mar 2005 16:06:06 +0000 (+0000) Subject: added sanity check on relay command X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d1656b342616048303c41f37008f903804a10e25;p=opensrf%2Fbjwebb.git added sanity check on relay command git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@186 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index aa8e334..5bef3d5 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -301,8 +301,8 @@ int send_request( char* server, if( buffer != NULL && buffer->n_used > 0 ) params = json_tokener_parse(buffer->buf); } else { - if(!last_result->result_content) { - warning_handler("We're not going to call 'relay' on empty result"); + if(!last_result || ! last_result->result_content) { + printf("We're not going to call 'relay' with no result params\n"); return 1; } else {