mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
Mail: fixed possible uninitialized memory access.
Found by Valgrind.
This commit is contained in:
parent
40c4e7b73c
commit
2b356db155
@ -842,6 +842,10 @@ ngx_mail_auth_parse(ngx_mail_session_t *s, ngx_connection_t *c)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (s->args.nelts == 0) {
|
||||
return NGX_MAIL_PARSE_INVALID_COMMAND;
|
||||
}
|
||||
|
||||
arg = s->args.elts;
|
||||
|
||||
if (arg[0].len == 5) {
|
||||
|
Loading…
Reference in New Issue
Block a user