[Freeswitch-svn] [commit] r3909 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
Freeswitch SVN
anthm at freeswitch.org
Thu Jan 4 17:08:41 EST 2007
Author: anthm
Date: Thu Jan 4 17:08:41 2007
New Revision: 3909
Modified:
freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
Log:
fix seg from bad input
Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c Thu Jan 4 17:08:41 2007
@@ -1876,6 +1876,11 @@
return SWITCH_STATUS_FALSE;
}
+ if (switch_strlen_zero(arg)) {
+ stream->write_function(stream, "USAGE: %s\n", login_api_interface.syntax);
+ return SWITCH_STATUS_SUCCESS;
+ }
+
myarg = strdup(arg);
argc = switch_separate_string(myarg, ';', argv, (sizeof(argv) / sizeof(argv[0])));
More information about the Freeswitch-svn
mailing list