]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/0020-Initialise-return-value.patch
dnsmasq: Import patches from upstream
[ipfire-2.x.git] / src / patches / dnsmasq / 0020-Initialise-return-value.patch
CommitLineData
6644c1c7
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
888c41de 4Subject: [PATCH 20/98] Initialise return value.
6644c1c7
MT
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 9350d3e8c963..ed8cf893bad2 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--
312.1.0
32