mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 61786 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r61786 | russell | 2007-04-24 16:33:59 -0500 (Tue, 24 Apr 2007) | 4 lines Don't crash if a manager connection provides a username that exists in manager.conf but does not have a password, and also requests MD5 authentication. (ASA-2007-012) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -926,7 +926,8 @@ static int authenticate(struct mansession *s, const struct message *m)
|
||||
} else if (ha)
|
||||
ast_free_ha(ha);
|
||||
if (!strcasecmp(authtype, "MD5")) {
|
||||
if (!ast_strlen_zero(key) && s->challenge) {
|
||||
if (!ast_strlen_zero(key) &&
|
||||
!ast_strlen_zero(s->challenge) && !ast_strlen_zero(password)) {
|
||||
int x;
|
||||
int len = 0;
|
||||
char md5key[256] = "";
|
||||
|
Reference in New Issue
Block a user