summaryrefslogtreecommitdiff
path: root/usr.sbin/rebound
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2019-10-07 17:44:46 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2019-10-07 17:44:46 +0000
commitdc3342e4c1c1c21ca67d9e58c17c18251b460b51 (patch)
tree7b034dc3e0b235348dec5a8c45f5fe7c5ac0c5ac /usr.sbin/rebound
parentc973e2cdabb52d462a462e395881f3c28e7854df (diff)
worker should always get a conffd, and if we don't, it's an error.
fixes compiler warning via deraadt
Diffstat (limited to 'usr.sbin/rebound')
-rw-r--r--usr.sbin/rebound/rebound.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index 8dab30cad79..92c3b457da4 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.108 2019/04/01 06:40:05 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.109 2019/10/07 17:44:45 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -1325,7 +1325,7 @@ main(int argc, char **argv)
argc -= optind;
if (worker) {
- int conffd;
+ int conffd = -1;
/* rewind "--" argument */
argv--;
@@ -1350,6 +1350,8 @@ main(int argc, char **argv)
break;
}
}
+ if (conffd == -1)
+ logerr("never received conffd");
argv += optind;
argc -= optind;
if (argc)