From baa8371f6f36812ec09aa64487e5912b7e947adb Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Mon, 7 Sep 2009 23:13:45 +0000 Subject: [PATCH] MODSOFIA-25 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14781 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index a1531775bf..f59f8e33e7 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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; }