[asterisk-commits] russell: branch group/security_events r200769 - /team/group/security_events/m...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 15 21:03:03 CDT 2009


Author: russell
Date: Mon Jun 15 21:02:59 2009
New Revision: 200769

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=200769
Log:
Only report request bad format if it didn't fail because of permissions

Modified:
    team/group/security_events/main/manager.c

Modified: team/group/security_events/main/manager.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/main/manager.c?view=diff&rev=200769&r1=200768&r2=200769
==============================================================================
--- team/group/security_events/main/manager.c (original)
+++ team/group/security_events/main/manager.c Mon Jun 15 21:02:59 2009
@@ -3856,7 +3856,9 @@
 		ret = call_func(s, m);
 	} else {
 		char buf[512];
-		report_req_bad_format(s, action);
+		if (!tmp) {
+			report_req_bad_format(s, action);
+		}
 		snprintf(buf, sizeof(buf), "Invalid/unknown command: %s. Use Action: ListCommands to show available commands.", action);
 		mansession_lock(s);
 		astman_send_error(s, m, buf);




More information about the asterisk-commits mailing list