mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
32 lines
1000 B
Diff
32 lines
1000 B
Diff
|
From ccff85ad72d2f858d9743d40525128e4f62d41a8 Mon Sep 17 00:00:00 2001
|
||
|
From: renmingshuai <renmingshuai@huawei.com>
|
||
|
Date: Wed, 21 Feb 2024 00:24:25 +0000
|
||
|
Subject: [PATCH] Fix error introduced in
|
||
|
51471cafa5a4fa44d6fe490885d9910bd72a5907
|
||
|
|
||
|
Signed-off-by: renmingshuai <renmingshuai@huawei.com>
|
||
|
---
|
||
|
src/dnssec.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- a/src/dnssec.c
|
||
|
+++ b/src/dnssec.c
|
||
|
@@ -1547,7 +1547,7 @@ static int prove_non_existence_nsec3(str
|
||
|
nsecs[i] = NULL; /* Speculative, will be restored if OK. */
|
||
|
|
||
|
if (!(p = skip_name(nsec3p, header, plen, 15)))
|
||
|
- return 0; /* bad packet */
|
||
|
+ return DNSSEC_FAIL_BADPACKET; /* bad packet */
|
||
|
|
||
|
p += 10; /* type, class, TTL, rdlen */
|
||
|
|
||
|
@@ -1640,7 +1640,7 @@ static int prove_non_existence_nsec3(str
|
||
|
if (!wildname)
|
||
|
{
|
||
|
if (!(wildcard = strchr(next_closest, '.')) || wildcard == next_closest)
|
||
|
- return 0;
|
||
|
+ return DNSSEC_FAIL_NONSEC;
|
||
|
|
||
|
wildcard--;
|
||
|
*wildcard = '*';
|