From 6663cb67f5c4aedddf50c2314a8cc8a120bb441b Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 13 Dec 2007 00:23:34 +0000 Subject: [PATCH] cleancleanup, prevent null deref. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6720 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_portaudio/mod_portaudio.c | 5 +++++ 1 file changed, 5 insertions(+) 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")) {