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
1.6.0
Joshua Colp 19 years ago
parent 7e46275b51
commit 1cc4009bc6

@ -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;
}
}

Loading…
Cancel
Save