MODSOFIA-25

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14781 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-09-07 23:13:45 +00:00
parent e071f1a68c
commit baa8371f6f

View File

@ -2482,6 +2482,10 @@ SWITCH_STANDARD_API(sofia_gateway_data_function)
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;
}