summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-04-07 14:54:26 +0000
committerLaurent Bercot <ska@appnovation.com>2023-04-07 14:54:26 +0000
commit61e0cf3f710fe203f191868071188d6c6cd298ad (patch)
treee8e498e4b1eb7408c27a16234616d0fbc3f2f5b1
parent3452ee6125e6af277e46f7406029230e4b8b0823 (diff)
downloaddnsfunnel-61e0cf3f710fe203f191868071188d6c6cd298ad.tar.gz
dnsfunnel-61e0cf3f710fe203f191868071188d6c6cd298ad.tar.xz
dnsfunnel-61e0cf3f710fe203f191868071188d6c6cd298ad.zip
bugfix: selfpipe_trapset error path
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/dnsfunnel/dnsfunneld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dnsfunnel/dnsfunneld.c b/src/dnsfunnel/dnsfunneld.c
index 2ff340f..61e2cc1 100644
--- a/src/dnsfunnel/dnsfunneld.c
+++ b/src/dnsfunnel/dnsfunneld.c
@@ -277,7 +277,7 @@ int main (int argc, char const *const *argv)
       sigemptyset(&set) ;
       sigaddset(&set, SIGTERM) ;
       sigaddset(&set, SIGHUP) ;
-      if (selfpipe_trapset(&set) < 0) strerr_diefu1sys(111, "trap signals") ;
+      if (!selfpipe_trapset(&set)) strerr_diefu1sys(111, "trap signals") ;
     }
     if (!gensetdyn_new(&queries, &sentinel))
       strerr_diefu1sys(111, "initialize query structure") ;