diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-09 16:37:29 +0200 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2013-04-09 20:27:27 +0200 |
commit | 28da1af476853e6b49765bd04a496163e8ebd448 (patch) | |
tree | 4b2f3c172676ea3db9e8f3a30c7533c557a4ad4d | |
parent | f61ee7238b8430572fb266521dad3ee000d1f252 (diff) | |
download | samba-28da1af476853e6b49765bd04a496163e8ebd448.tar.gz samba-28da1af476853e6b49765bd04a496163e8ebd448.tar.bz2 samba-28da1af476853e6b49765bd04a496163e8ebd448.zip |
winbindd: Avoid a fd leak when we can not fork
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Jim McDonough <jmcd@samba.org>
Autobuild-User(master): Jim McDonough <jmcd@samba.org>
Autobuild-Date(master): Tue Apr 9 20:27:27 CEST 2013 on sn-devel-104
-rw-r--r-- | source3/winbindd/winbindd_dual.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index e1e45d4910..34896d57fa 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -1398,6 +1398,8 @@ static bool fork_domain_child(struct winbindd_child *child) if (child->pid == -1) { DEBUG(0, ("Could not fork: %s\n", strerror(errno))); + close(fdpair[0]); + close(fdpair[1]); return False; } |