aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2014-05-26 18:01:31 +0200
committerAndreas Schwab <schwab@suse.de>2014-06-03 18:03:39 +0200
commitf9d2d03254a58d92635a311a42253eeed5a40a47 (patch)
tree26330e7027914a476f723efe2b169b4dbf994448 /resolv
parent71840409ea45ab9e49d0ac70dfc1c355accf355f (diff)
downloadglibc-f9d2d03254a58d92635a311a42253eeed5a40a47.zip
glibc-f9d2d03254a58d92635a311a42253eeed5a40a47.tar.gz
glibc-f9d2d03254a58d92635a311a42253eeed5a40a47.tar.bz2
Fix invalid file descriptor reuse while sending DNS query (BZ #15946)
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 3273d55..af42b8a 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -1410,6 +1410,7 @@ send_dg(res_state statp,
retval = reopen (statp, terrno, ns);
if (retval <= 0)
return retval;
+ pfd[0].fd = EXT(statp).nssocks[ns];
}
}
goto wait;