From 085b897198f5d1d5ce94147ede15a70e668ca085 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 4 Jan 2007 22:08:41 +0000 Subject: [PATCH] fix seg from bad input git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3909 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 4f3637b4cf..d358513104 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1876,6 +1876,11 @@ static switch_status_t dl_login(char *arg, switch_core_session_t *session, switc 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])));