]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/dnsmasq/0020-Initialise-return-value.patch
362c59637e1ab907a6a720f7ba7fcc0fbef27e13
[ipfire-2.x.git] / src / patches / dnsmasq / 0020-Initialise-return-value.patch
1 From 83d2ed09fc0216b567d7fb2197e4ff3eae150b0d Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Tue, 23 Dec 2014 18:42:38 +0000
4 Subject: [PATCH 20/78] Initialise return value.
5
6 ---
7 src/dnssec.c | 7 +++++--
8 1 file changed, 5 insertions(+), 2 deletions(-)
9
10 diff --git a/src/dnssec.c b/src/dnssec.c
11 index 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 --
31 2.1.0
32