Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (14780 => 14781)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-09-07 23:08:57 UTC (rev 14780)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-09-07 23:13:45 UTC (rev 14781)
@@ -2482,6 +2482,10 @@
char *gwname, *param, *varname;
const char *val = NULL;
+ if (switch_strlen_zero(cmd)) {
+ stream->write_function(stream, "-ERR Parameter missing\n");
+ return SWITCH_STATUS_SUCCESS;
+ }
if (!(mydata = strdup(cmd))) {
return SWITCH_STATUS_FALSE;
}