From 15830989ee7f07d63003533da97bef06f58633dd Mon Sep 17 00:00:00 2001 From: "Max N. Boyarov" Date: Wed, 3 May 2006 01:23:18 +0000 Subject: [PATCH] fixed segfault if state.override.run is NULL --- source/bforce/sess_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/bforce/sess_call.c b/source/bforce/sess_call.c index b0ef1e4..62538ed 100644 --- a/source/bforce/sess_call.c +++ b/source/bforce/sess_call.c @@ -669,7 +669,7 @@ do_session: errmsg = "cannot lock address"; gotoexit(BFERR_SYSTEM_LOCKED); } - if( strlen(state.override.run) > 0 ) + if( NULL != state.override.run && strlen(state.override.run) > 0 ) { if ( (runrc = system(state.override.run) != 0 )) {