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 78145c347e
commit a6b4e36207
1 changed files with 0 additions and 1 deletions

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;