mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Mail: fixed possible uninitialized memory access.
Found by Valgrind.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user