mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
Resolver: fixed off-by-one write in ngx_resolver_copy().
Reported by Luis Merino, Markus Vervier, Eric Sesterhenn, X41 D-Sec GmbH.
This commit is contained in:
parent
473ef4f869
commit
7199ebc203
1 changed files with 4 additions and 4 deletions
|
|
@ -4008,15 +4008,15 @@ done:
|
|||
n = *src++;
|
||||
|
||||
} else {
|
||||
if (dst != name->data) {
|
||||
*dst++ = '.';
|
||||
}
|
||||
|
||||
ngx_strlow(dst, src, n);
|
||||
dst += n;
|
||||
src += n;
|
||||
|
||||
n = *src++;
|
||||
|
||||
if (n != 0) {
|
||||
*dst++ = '.';
|
||||
}
|
||||
}
|
||||
|
||||
if (n == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue