ignatenkobrain / rpms / nginx

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