File CVE-2021-23017.patch of Package nginx.19766

diff '--color=auto' -Naur nginx-1.16.1.orig/src/core/ngx_resolver.c nginx-1.16.1/src/core/ngx_resolver.c
--- nginx-1.16.1.orig/src/core/ngx_resolver.c	2019-08-13 14:51:43.000000000 +0200
+++ nginx-1.16.1/src/core/ngx_resolver.c	2021-05-20 14:31:44.398749952 +0200
@@ -3927,7 +3927,7 @@
     ngx_uint_t   i, n;
 
     p = src;
-    len = -1;
+    len = 0;
 
     /*
      * compression pointers allow to create endless loop, so we set limit;
@@ -3970,7 +3970,7 @@
         return NGX_OK;
     }
 
-    if (len == -1) {
+    if (len == 0) {
         ngx_str_null(name);
         return NGX_OK;
     }
openSUSE Build Service is sponsored by