0113-Fix-warning-message-logic.patch 593 B

1234567891011121314151617181920
  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. src/hash_questions.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. --- a/src/hash_questions.c
  9. +++ b/src/hash_questions.c
  10. @@ -43,7 +43,7 @@ unsigned char *hash_questions(struct dns
  11. static unsigned char dummy[HASH_SIZE];
  12. static int warned = 0;
  13. - if (warned)
  14. + if (!warned)
  15. my_syslog(LOG_ERR, _("Failed to create SHA-256 hash object"));
  16. warned = 1;