cleancleanup, prevent null deref.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6720 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-12-13 00:23:34 +00:00
parent 6452b66bf7
commit 6663cb67f5
1 changed files with 5 additions and 0 deletions

View File

@ -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")) {