mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-29 15:36:13 +00:00
Merged revisions 48115 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48115 | file | 2006-11-29 16:05:17 -0500 (Wed, 29 Nov 2006) | 2 lines Use MAILTMPLEN instead of sizeof in mm_login. (issue #8420 reported by slimey) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8472,15 +8472,16 @@ void mm_login(NETMBX * mb, char *user, char *pwd, long trial)
|
||||
|
||||
if(option_debug > 3)
|
||||
ast_log(LOG_DEBUG, "Entering callback mm_login\n");
|
||||
ast_copy_string(user, mb->user,sizeof(user));
|
||||
|
||||
ast_copy_string(user, mb->user, MAILTMPLEN);
|
||||
|
||||
/* We should only do this when necessary */
|
||||
if (!ast_strlen_zero(authpassword)) {
|
||||
ast_copy_string(pwd, authpassword, sizeof(pwd));
|
||||
ast_copy_string(pwd, authpassword, MAILTMPLEN);
|
||||
} else {
|
||||
AST_LIST_TRAVERSE(&users, vmu, list) {
|
||||
if(!strcasecmp(mb->user, vmu->imapuser)) {
|
||||
ast_copy_string(pwd, vmu->imappassword, sizeof(pwd));
|
||||
ast_copy_string(pwd, vmu->imappassword, MAILTMPLEN);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user