From 61e0cf3f710fe203f191868071188d6c6cd298ad Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 7 Apr 2023 14:54:26 +0000 Subject: bugfix: selfpipe_trapset error path Signed-off-by: Laurent Bercot --- src/dnsfunnel/dnsfunneld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") ; -- cgit 1.4.1