python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / libldns / 0001-bugfix-548-Double-free-for-answers-4096.patch
blob4097cfedd904e52b80bef589809d6c65a168f10a
1 From 128aeb54593d4dd8ff2403eb2dd7d6cd596717d2 Mon Sep 17 00:00:00 2001
2 From: Willem Toorop <willem@nlnetlabs.nl>
3 Date: Tue, 28 Jan 2014 11:06:38 +0100
4 Subject: [PATCH] bugfix #548: Double free for answers > 4096
6 in ldns_resolver_send_pkt. Thank you sunthought@gmail.com
8 [Backport from upstream commit 2853eb352b4461e98f2926ace4ea3810cedf4167]
9 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 ---
11 resolver.c | 1 +
12 1 file changed, 1 insertion(+)
14 diff --git a/resolver.c b/resolver.c
15 index 16efc90..1474dc8 100644
16 --- a/resolver.c
17 +++ b/resolver.c
18 @@ -1117,6 +1117,7 @@ ldns_resolver_send_pkt(ldns_pkt **answer, ldns_resolver *r,
19 ldns_pkt_set_edns_udp_size(query_pkt
20 , 4096);
21 ldns_pkt_free(answer_pkt);
22 + answer_pkt = NULL;
23 /* Nameservers should not become
24 * unreachable because fragments are
25 * dropped (network error). We might
26 --
27 2.6.4