mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06:00
Mail: fixed overrun of allocated memory (ticket #411).
Reported by Markus Linnala.
This commit is contained in:
parent
f2b5192c30
commit
aa36cc39a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user