diff options
author | 2005-06-06 23:20:44 +0000 | |
---|---|---|
committer | 2005-06-06 23:20:44 +0000 | |
commit | 4dfa96bc11d42bb3197644418db31397f1585bbd (patch) | |
tree | 902c74d96b3fdfca50e8162342a3abca99d42ac2 | |
parent | add ike encap types UDP_ENCAP_TUNNEL and UDP_ENCAP_TRANSPORT (diff) | |
download | wireguard-openbsd-4dfa96bc11d42bb3197644418db31397f1585bbd.tar.xz wireguard-openbsd-4dfa96bc11d42bb3197644418db31397f1585bbd.zip |
fix fd leak on SIGHUP after config change, spotted by Stephen Marley; ok avsm@
-rw-r--r-- | usr.sbin/syslogd/privsep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/privsep.c b/usr.sbin/syslogd/privsep.c index 6e031133901..572d30f46f6 100644 --- a/usr.sbin/syslogd/privsep.c +++ b/usr.sbin/syslogd/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.25 2005/05/23 20:12:28 henning Exp $ */ +/* $OpenBSD: privsep.c,v 1.26 2005/06/06 23:20:44 djm Exp $ */ /* * Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org> @@ -326,6 +326,8 @@ priv_init(char *conf, int numeric, int lockfd, int nullfd, char *argv[]) } } + close(socks[0]); + /* Unlink any domain sockets that have been opened */ for (i = 0; i < nfunix; i++) if (funixn[i] != NULL && pfd[PFD_UNIX_0 + i].fd != -1) |