mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix warning message logic.
This commit is contained in:
@@ -43,7 +43,7 @@ unsigned char *hash_questions(struct dns_header *header, size_t plen, char *name
|
|||||||
static unsigned char dummy[HASH_SIZE];
|
static unsigned char dummy[HASH_SIZE];
|
||||||
static int warned = 0;
|
static int warned = 0;
|
||||||
|
|
||||||
if (warned)
|
if (!warned)
|
||||||
my_syslog(LOG_ERR, _("Failed to create SHA-256 hash object"));
|
my_syslog(LOG_ERR, _("Failed to create SHA-256 hash object"));
|
||||||
warned = 1;
|
warned = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user