Accidentally relayd(8) closed file descriptor 0 in the pfe child
authorbluhm <bluhm@openbsd.org>
Sat, 1 Sep 2018 18:09:14 +0000 (18:09 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 1 Sep 2018 18:09:14 +0000 (18:09 +0000)
commit21345b3faf269ccd4e3d13f9c59e6eaca91039b3
treea142fca16cfd8988cf3da401ba64bfa3122f384d
parent67852ea01b4b9c09df650a6e861da92dc3a955d8
Accidentally relayd(8) closed file descriptor 0 in the pfe child
process.  If env->sc_snmp is initialized with 0, snmp_init() closes
it.  Set it to -1 to prevent the close(2).
OK reyk@ benno@ millert@
usr.sbin/relayd/relayd.c