mirror of https://github.com/openresty/openresty
bugfix: applied the patch for security advisory to NGINX cores >= 0.6.18 and <= 1.20.0 (CVE-2021-23017). (#739)
parent
42410a71cd
commit
4b5ec7edd7
@ -0,0 +1,23 @@
|
||||
diff --git src/core/ngx_resolver.c src/core/ngx_resolver.c
|
||||
--- src/core/ngx_resolver.c
|
||||
+++ src/core/ngx_resolver.c
|
||||
@@ -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…
Reference in New Issue