dnsmasq: don't use network functions at boottime (FS#1542)
[openwrt/openwrt.git] / package / network / services / dnsmasq / patches / 0001-Be-persistent-with-broken-upstream-DNSSEC-warnings.patch
1 From f84e674d8aa2316fea8d2145a40fcef0441e3856 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Fri, 4 May 2018 16:29:57 +0100
4 Subject: [PATCH 01/17] Be persistent with broken-upstream-DNSSEC warnings.
5
6 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 ---
8 src/dnssec.c | 7 +------
9 1 file changed, 1 insertion(+), 6 deletions(-)
10
11 --- a/src/dnssec.c
12 +++ b/src/dnssec.c
13 @@ -876,12 +876,7 @@ int dnssec_validate_ds(time_t now, struc
14
15 if (rc == STAT_INSECURE)
16 {
17 - static int reported = 0;
18 - if (!reported)
19 - {
20 - reported = 1;
21 - my_syslog(LOG_WARNING, _("Insecure DS reply received, do upstream DNS servers support DNSSEC?"));
22 - }
23 + my_syslog(LOG_WARNING, _("Insecure DS reply received, do upstream DNS servers support DNSSEC?"));
24 rc = STAT_BOGUS;
25 }
26