]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/glibc/glibc-rh1207995.patch
glibc: Fix CVE-2013-7423 and CVE-2015-1781
[ipfire-2.x.git] / src / patches / glibc / glibc-rh1207995.patch
1 #
2 # Based on the following commit:
3 #
4 # commit f9d2d03254a58d92635a311a42253eeed5a40a47
5 # Author: Andreas Schwab <schwab@suse.de>
6 # Date: Mon May 26 18:01:31 2014 +0200
7 #
8 # Fix invalid file descriptor reuse while sending DNS query (BZ #15946)
9 #
10 # 2014-06-03 Andreas Schwab <schwab@suse.de>
11 #
12 # [BZ #15946]
13 # * resolv/res_send.c (send_dg): Reload file descriptor after
14 # calling reopen.
15 #
16 diff --git a/resolv/res_send.c b/resolv/res_send.c
17 index 3273d55..af42b8a 100644
18 --- a/resolv/res_send.c
19 +++ b/resolv/res_send.c
20 @@ -1410,6 +1410,7 @@ send_dg(res_state statp,
21 retval = reopen (statp, terrno, ns);
22 if (retval <= 0)
23 return retval;
24 + pfd[0].fd = EXT(statp).nssocks[ns];
25 }
26 }
27 goto wait;