]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #434]
authorUlrich Drepper <drepper@redhat.com>
Mon, 11 Oct 2004 20:50:24 +0000 (20:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 11 Oct 2004 20:50:24 +0000 (20:50 +0000)
Update.
* resolv/res_init.c (res_thread_freeres): Reset _res.options.
[BZ #434]

ChangeLog
resolv/res_init.c

index ffa6876cf8895f415dc940c192351b022204e3a2..f023b2b6e034389876639ba74102696b2c9bb7e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-10-11  Ulrich Drepper  <drepper@redhat.com>
 
+       * resolv/res_init.c (res_thread_freeres): Reset _res.options.
+       [BZ #434]
+
        * resolv/res_send.c (send_dg): Use nonblocking sockets.  Add
        appropriate poll/select calls and restart operation if necessary.
        Also handle EINTR.
index 4087597a87575173ef96b9a97498f23ed83ed8b3..731c784e17476754136fd774c3ba222bb1179856 100644 (file)
@@ -597,6 +597,9 @@ res_thread_freeres (void)
        free (_res._u._ext.nsaddrs[ns]);
        _res._u._ext.nsaddrs[ns] = NULL;
       }
+
+  /* Make sure we do a full re-initialization the next time.  */
+  _res.options = 0;
 }
 text_set_element (__libc_thread_subfreeres, res_thread_freeres);
 text_set_element (__libc_subfreeres, res_thread_freeres);