From: Michael Jerris Date: Thu, 13 Dec 2007 00:23:34 +0000 (+0000) Subject: cleancleanup, prevent null deref. X-Git-Tag: v1.0-rc1~1126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6663cb67f5c4aedddf50c2314a8cc8a120bb441b;p=thirdparty%2Ffreeswitch.git cleancleanup, prevent null deref. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6720 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 64bb70029f..e382d73b12 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -1730,6 +1730,11 @@ SWITCH_STANDARD_API(pa_cmd) 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")) {