Mail: fixed possible uninitialized memory access.
Found by Valgrind.
This commit is contained in:
parent
5636b1b6ab
commit
d53b56bdf5
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue