]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/dnsmasq-2.73-initialise-return-value.patch
Merge remote-tracking branch 'glotzi/monit' into next
[ipfire-2.x.git] / src / patches / dnsmasq / dnsmasq-2.73-initialise-return-value.patch
CommitLineData
b56472d4
MT
1From 83d2ed09fc0216b567d7fb2197e4ff3eae150b0d Mon Sep 17 00:00:00 2001
2From: Simon Kelley <simon@thekelleys.org.uk>
3Date: Tue, 23 Dec 2014 18:42:38 +0000
4Subject: [PATCH] Initialise return value.
5
6---
7 src/dnssec.c | 7 +++++--
8 1 file changed, 5 insertions(+), 2 deletions(-)
9
10diff --git a/src/dnssec.c b/src/dnssec.c
11index 9350d3e..ed8cf89 100644
12--- a/src/dnssec.c
13+++ b/src/dnssec.c
14@@ -637,10 +637,13 @@ static int validate_rrset(time_t now, struct dns_header *header, size_t plen, in
15 struct crec *crecp = NULL;
16 int type_covered, algo, labels, orig_ttl, sig_expiration, sig_inception, key_tag;
17 u16 *rr_desc = get_desc(type);
18-
19+
20+ if (wildcard_out)
21+ *wildcard_out = NULL;
22+
23 if (!(p = skip_questions(header, plen)))
24 return STAT_BOGUS;
25-
26+
27 name_labels = count_labels(name); /* For 4035 5.3.2 check */
28
29 /* look for RRSIGs for this RRset and get pointers to each RR in the set. */
30--
311.7.10.4
32