diff options
author | Landry Breuil <landry@cvs.openbsd.org> | 2016-01-17 08:13:35 +0000 |
---|---|---|
committer | Landry Breuil <landry@cvs.openbsd.org> | 2016-01-17 08:13:35 +0000 |
commit | 10e478f17277533099f56dadcd49bc8769c713c1 (patch) | |
tree | a34be449cabaa7078d84aef4845cc5c49dd7b2ef /usr.sbin/ldapd/control.c | |
parent | 6f2dde2309af830559ee9cac99e71d5a19d1c9ee (diff) |
Properly remove unix sockets (control & listening) upon exit of the
parent process.
Child process was killed by pledge because it tried to remove the
control socket and didnt have cpath - anyway it couldnt remove it since
it had chrooted..
ok jmatthew@ deraadt@
Diffstat (limited to 'usr.sbin/ldapd/control.c')
-rw-r--r-- | usr.sbin/ldapd/control.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/control.c b/usr.sbin/ldapd/control.c index 545fde6a08e..ce25b20f400 100644 --- a/usr.sbin/ldapd/control.c +++ b/usr.sbin/ldapd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.12 2015/12/24 17:47:57 mmcc Exp $ */ +/* $OpenBSD: control.c,v 1.13 2016/01/17 08:13:34 landry Exp $ */ /* * Copyright (c) 2010 Martin Hedenfalk <martin@bzero.se> @@ -114,7 +114,6 @@ control_cleanup(struct control_sock *cs) return; event_del(&cs->cs_ev); event_del(&cs->cs_evt); - (void)unlink(cs->cs_name); } /* ARGSUSED */ |