Fix warning message logic.

This commit is contained in:
Simon Kelley
2021-01-15 21:53:29 +00:00
parent e01e09c712
commit 503f68dbc4

View File

@@ -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;