]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Actually make it possible to user the default name server.
authorUlrich Drepper <drepper@redhat.com>
Tue, 14 Sep 2010 07:01:42 +0000 (00:01 -0700)
committerAndreas Schwab <schwab@redhat.com>
Wed, 1 Dec 2010 14:35:11 +0000 (15:35 +0100)
(cherry picked from commit e66e7419a6f58200eec6941b14e2dcff9875cc6c)

ChangeLog
resolv/res_init.c

index ba71b648f980dfc79c4f117a82775f5b2ab90f0e..ad8a25f245aae8cef08b40d38e1dd2ce90a398e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-14  Ulrich Drepper  <drepper@redhat.com>
+
+       * resolv/res_init.c (__res_vinit): Count the default server we added.
+
 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #10851]
index 202569ddac07c0d522e8b9bbc0054c539e503c58..74715f34e99c098c0b1c9be0fb8ed12512519d78 100644 (file)
@@ -430,6 +430,7 @@ __res_vinit(res_state statp, int preinit) {
            statp->nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
            statp->nsaddr.sin_family = AF_INET;
            statp->nsaddr.sin_port = htons(NAMESERVER_PORT);
+           statp->nscount = 1;
        }
        if (statp->defdname[0] == 0 &&
            __gethostname(buf, sizeof(statp->defdname) - 1) == 0 &&