dnsmasq: Backport some security updates
[librecmc/librecmc.git] / package / network / services / dnsmasq / patches / 0113-Fix-warning-message-logic.patch
1 From 503f68dbc437df20a45aab440e6fad92062af229 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Fri, 15 Jan 2021 21:53:29 +0000
4 Subject: Fix warning message logic.
5
6 ---
7  src/hash_questions.c | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
10 --- a/src/hash_questions.c
11 +++ b/src/hash_questions.c
12 @@ -43,7 +43,7 @@ unsigned char *hash_questions(struct dns
13        static unsigned char dummy[HASH_SIZE];
14        static int warned = 0;
15  
16 -      if (warned)
17 +      if (!warned)
18         my_syslog(LOG_ERR, _("Failed to create SHA-256 hash object"));
19        warned = 1;
20