From 0208f0ac71812e60a3cf5ac91ded40c1f2fed1b5 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Wed, 10 Aug 2011 13:49:31 +0000 Subject: [PATCH] Merged revisions 331316 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/10 ................ r331316 | kmoore | 2011-08-10 08:48:41 -0500 (Wed, 10 Aug 2011) | 15 lines Merged revisions 331315 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r331315 | kmoore | 2011-08-10 08:47:46 -0500 (Wed, 10 Aug 2011) | 8 lines AMI action ModuleReload returns Error if Module: missing or empty An empty string was not being checked for properly causing identification of the module to be reloaded to fail and return an Error with message "No such module." (closes issue AST-616) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@331317 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/manager.c b/main/manager.c index 94782418ca..319b5ba86f 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4586,7 +4586,7 @@ static int manager_moduleload(struct mansession *s, const struct message *m) astman_send_ack(s, m, "Module unloaded."); } } else if (!strcasecmp(loadtype, "reload")) { - if (module != NULL) { + if (!ast_strlen_zero(module)) { res = ast_module_reload(module); if (res == 0) { astman_send_error(s, m, "No such module."); -- 2.47.3