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

Freeswitch SVN anthm at freeswitch.org
Thu May 8 16:54:37 EDT 2008


Author: anthm
Date: Thu May  8 16:54:37 2008
New Revision: 8313

Modified:
   freeswitch/trunk/src/switch_core_io.c

Log:
extra protection against unruly practice

Modified: freeswitch/trunk/src/switch_core_io.c
==============================================================================
--- freeswitch/trunk/src/switch_core_io.c	(original)
+++ freeswitch/trunk/src/switch_core_io.c	Thu May  8 16:54:37 2008
@@ -501,6 +501,10 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
+	if (!(session->write_codec && session->write_codec->implementation)) {
+		return SWITCH_STATUS_FALSE;
+	}
+
 	if (switch_channel_test_flag(session->channel, CF_HOLD)) {
 		return SWITCH_STATUS_SUCCESS;
 	}



More information about the Freeswitch-svn mailing list