[Freeswitch-svn] [commit] r8447 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri May 16 13:55:13 EDT 2008


Author: mikej
Date: Fri May 16 13:55:12 2008
New Revision: 8447

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
check value before using. Found by Klockwork (www.klocwork.com)

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri May 16 13:55:12 2008
@@ -577,7 +577,7 @@
 	switch_time_t started = 0;
 	uint32_t elapsed;
 
-	if (!args->input_callback) {
+	if (!args || !args->input_callback) {
 		return SWITCH_STATUS_GENERR;
 	}
 



More information about the Freeswitch-svn mailing list