]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODSOFIA-25
authorMathieu Rene <mrene@avgs.ca>
Mon, 7 Sep 2009 23:13:45 +0000 (23:13 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 7 Sep 2009 23:13:45 +0000 (23:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14781 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index a1531775bf570f3df6ccabc729cc3ea38f64a990..f59f8e33e7f25f250041efa65e26e3f712c234a8 100644 (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;
        }