From d1656b342616048303c41f37008f903804a10e25 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 7 Mar 2005 16:06:06 +0000 Subject: [PATCH] added sanity check on relay command git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@186 9efc2488-bf62-4759-914b-345cdb29e865 --- src/srfsh/srfsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.43.2