From ca18dcbe02479a6798b20afb56dee3cc40e21ba3 Mon Sep 17 00:00:00 2001 From: Christopher Rienzo Date: Sat, 17 Nov 2012 16:52:36 -0500 Subject: [PATCH] mod_dingaling- fix input check for dl_login so that dynamic profiles can be used --- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 70f699363a..b0ed56b4c9 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -3090,7 +3090,7 @@ SWITCH_STANDARD_API(dingaling) SWITCH_STANDARD_API(dl_login) { - char *argv[10] = { 0 }; + char *argv[20] = { 0 }; int argc = 0; char *var, *val, *myarg = NULL; mdl_profile_t *profile = NULL; @@ -3112,7 +3112,7 @@ SWITCH_STANDARD_API(dl_login) argc = switch_separate_string(myarg, ';', argv, (sizeof(argv) / sizeof(argv[0]))); - if (zstr(cmd) || argc != 1) { + if (zstr(cmd)) { stream->write_function(stream, "USAGE: %s\n", LOGIN_SYNTAX); status = SWITCH_STATUS_SUCCESS; goto done;