[Freeswitch-trunk] [commit] r6720 - freeswitch/trunk/src/mod/endpoints/mod_portaudio
Freeswitch SVN
mikej at freeswitch.org
Wed Dec 12 19:23:34 EST 2007
Author: mikej
Date: Wed Dec 12 19:23:34 2007
New Revision: 6720
Modified:
freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
Log:
cleancleanup, prevent null deref.
Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c Wed Dec 12 19:23:34 2007
@@ -1730,6 +1730,11 @@
goto done;
}
+ if (!argv[0]) {
+ stream->write_function(stream, "Unknown Command\n");
+ goto done;
+ }
+
if (!strcasecmp(argv[0], "call")) {
func = place_call;
} else if (!strcasecmp(argv[0], "help")) {
More information about the Freeswitch-trunk
mailing list