Remove dead code after call to dns_main().
authorEmil Mikulic <emikulic@gmail.com>
Thu, 1 Sep 2016 07:51:50 +0000 (17:51 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Thu, 1 Sep 2016 07:51:50 +0000 (17:51 +1000)
Reported by: David Binderman
Found with: cppcheck --enable=style

dns.c

diff --git a/dns.c b/dns.c
index 163aa56..a96a0ca 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -68,7 +68,6 @@ dns_init(const char *privdrop_user)
          errx(1, "signal(SIGUSR1, ignore) failed");
       cap_free_args();
       dns_main();
-      errx(1, "DNS child fell out of dns_main()");
    } else {
       /* We are the parent. */
       close(dns_sock[CHILD]);