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: http://svn.digium.com/svn/asterisk/trunk@48116 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
8b2960e19d
commit
8693f486bf
|
@ -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