diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2019-10-07 17:44:46 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2019-10-07 17:44:46 +0000 |
commit | dc3342e4c1c1c21ca67d9e58c17c18251b460b51 (patch) | |
tree | 7b034dc3e0b235348dec5a8c45f5fe7c5ac0c5ac /usr.sbin/rebound | |
parent | c973e2cdabb52d462a462e395881f3c28e7854df (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.c | 6 |
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) |