ignatenkobrain / rpms / nginx

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