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

FreeSWITCH SVN mikej at freeswitch.org
Fri Mar 20 15:49:01 PDT 2009


Author: mikej
Date: Fri Mar 20 17:49:01 2009
New Revision: 12697

Log:
fix edge case segfault

Modified:
   freeswitch/trunk/src/switch_ivr_async.c

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Fri Mar 20 17:49:01 2009
@@ -448,11 +448,10 @@
 			
 			if (rh->fh) {
 				switch_core_file_close(rh->fh);
-			}
-		
-			if (rh->fh->samples_out < read_impl.samples_per_second * 3) {
-				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Discarding short file %s\n", rh->file);
-				switch_file_remove(rh->file, switch_core_session_get_pool(session));
+				if (rh->fh->samples_out < read_impl.samples_per_second * 3) {
+					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Discarding short file %s\n", rh->file);
+					switch_file_remove(rh->file, switch_core_session_get_pool(session));
+				}
 			}
 		}
 



More information about the Freeswitch-svn mailing list