[asterisk-commits] jrose: branch 11 r376727 - in /branches/11: ./ main/manager.c

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


Author: jrose
Date: Wed Nov 28 10:37:26 2012
New Revision: 376727

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376727
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
........

Merged revisions 376726 from http://svn.asterisk.org/svn/asterisk/branches/10

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

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

Modified: branches/11/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/manager.c?view=diff&rev=376727&r1=376726&r2=376727
==============================================================================
--- branches/11/main/manager.c (original)
+++ branches/11/main/manager.c Wed Nov 28 10:37:26 2012
@@ -5095,7 +5095,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