12745e
commit f9d2d03254a58d92635a311a42253eeed5a40a47
12745e
Author: Andreas Schwab <schwab@suse.de>
12745e
Date:   Mon May 26 18:01:31 2014 +0200
12745e
12745e
    Fix invalid file descriptor reuse while sending DNS query (BZ #15946)
12745e
12745e
diff --git glibc-2.17-c758a686/resolv/res_send.c glibc-2.17-c758a686/resolv/res_send.c
12745e
index 3273d55..af42b8a 100644
12745e
--- glibc-2.17-c758a686/resolv/res_send.c
12745e
+++ glibc-2.17-c758a686/resolv/res_send.c
12745e
@@ -1410,6 +1410,7 @@ send_dg(res_state statp,
12745e
 					retval = reopen (statp, terrno, ns);
12745e
 					if (retval <= 0)
12745e
 						return retval;
12745e
+					pfd[0].fd = EXT(statp).nssocks[ns];
12745e
 				}
12745e
 			}
12745e
 			goto wait;