looked like it would segfault in the case of a relay command.
M src/srfsh/srfsh.c
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1913
9efc2488-bf62-4759-914b-
345cdb29e865
osrfLogToStderr();
params = jsonParse( OSRF_BUFFER_C_STR( buffer ) );
osrfRestoreLogType();
+ if( params == NULL) {
+ fprintf(stderr, "JSON error detected, not executing\n");
+ return 1;
+ }
}
} else {
if(!last_result || ! last_result->_result_content) {
}
}
- if(buffer->n_used > 0 && params == NULL) {
- fprintf(stderr, "JSON error detected, not executing\n");
- jsonObjectFree(params);
- return 1;
- }
-
int session_is_temporary; // boolean
osrfAppSession* session = osrfHashGet( server_hash, server );
if( session ) {