Mail: fixed overrun of allocated memory (ticket #411).

Reported by Markus Linnala.
This commit is contained in:
Maxim Dounin 2013-09-30 22:10:08 +04:00
parent f2b5192c30
commit aa36cc39a4

View File

@ -277,7 +277,6 @@ ngx_mail_smtp_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
p = ngx_cpymem(p, conf->capability.data, conf->capability.len);
p = ngx_cpymem(p, "250 STARTTLS" CRLF, sizeof("250 STARTTLS" CRLF) - 1);
*p++ = CR; *p = LF;
p = conf->starttls_capability.data
+ (last - conf->capability.data) + 3;