Merged revisions 376728 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk ................ r376728 | jrose | 2012-11-28 10:47:44 -0600 (Wed, 28 Nov 2012) | 22 lines 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 ........ Merged revisions 376727 from http://svn.asterisk.org/svn/asterisk/branches/11 ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
8e7dd42f67
commit
b6ace287f0
1 changed files with 1 additions and 1 deletions
|
@ -5127,7 +5127,7 @@ static int process_message(struct mansession *s, const struct message *m)
|
||||||
|| !strcasecmp(action, "Challenge"))) {
|
|| !strcasecmp(action, "Challenge"))) {
|
||||||
user = astman_get_header(m, "Username");
|
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);
|
report_session_limit(s);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
mansession_lock(s);
|
mansession_lock(s);
|
||||||
|
|
Loading…
Reference in a new issue