[asterisk-commits] jrose: branch 10 r376726 - in /branches/10: ./ main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 28 10:30:31 CST 2012


Author: jrose
Date: Wed Nov 28 10:30:27 2012
New Revision: 376726

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376726
Log:
manager: Make challenge work with allowmultiplelogin=no

Prior to this patch, challenge would yield a multiple logins error if used
without providing the username (which isn't really supposed to be an argument
to challenge) if allowmultiplelogin was set to no because allowmultiplelogin
finds a user with a zero length login name. This check is simply disabled for
the challenge action when the username is empty by this patch.

(closes issue ASTERISK-20677)
Reported by: Vladimir
Patches:
    challenge_action_nomultiplelogin.diff uploaded by Jonathan Rose (license 6182)
........

Merged revisions 376725 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/main/manager.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/manager.c?view=diff&rev=376726&r1=376725&r2=376726
==============================================================================
--- branches/10/main/manager.c (original)
+++ branches/10/main/manager.c Wed Nov 28 10:30:27 2012
@@ -4840,7 +4840,7 @@
 			|| !strcasecmp(action, "Challenge"))) {
 		user = astman_get_header(m, "Username");
 
-		if (check_manager_session_inuse(user)) {
+		if (!ast_strlen_zero(user) && check_manager_session_inuse(user)) {
 			report_session_limit(s);
 			sleep(1);
 			mansession_lock(s);




More information about the asterisk-commits mailing list