ignatenkobrain / rpms / nginx

Forked from rpms/nginx 2 years ago
Clone
ee16ea
diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c
ee16ea
index e51712c..4e75ab8 100644
ee16ea
--- a/src/core/ngx_resolver.c
ee16ea
+++ b/src/core/ngx_resolver.c
ee16ea
@@ -3993,15 +3993,15 @@ done:
ee16ea
             n = *src++;
ee16ea
 
ee16ea
         } else {
ee16ea
+            if (dst != name->data) {
ee16ea
+                *dst++ = '.';
ee16ea
+            }
ee16ea
+
ee16ea
             ngx_strlow(dst, src, n);
ee16ea
             dst += n;
ee16ea
             src += n;
ee16ea
 
ee16ea
             n = *src++;
ee16ea
-
ee16ea
-            if (n != 0) {
ee16ea
-                *dst++ = '.';
ee16ea
-            }
ee16ea
         }
ee16ea
 
ee16ea
         if (n == 0) {