summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-07 06:04:28 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-07 06:04:28 +0000
commitb440418f13b840860be42690bf475c1ee3cb3647 (patch)
tree54306b87f79cf73ca7a9dd11882d04707f47b598 /source/nsswitch
parent442eb39657b98f67cd229ed3110b63aae8bf4e3c (diff)
downloadsamba-b440418f13b840860be42690bf475c1ee3cb3647.tar.gz
samba-b440418f13b840860be42690bf475c1ee3cb3647.tar.xz
samba-b440418f13b840860be42690bf475c1ee3cb3647.zip
Don't leak file desciptors in this (impossible?) error case.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/wb_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c
index 0d1be4d5d1f..88bda4eabe3 100644
--- a/source/nsswitch/wb_common.c
+++ b/source/nsswitch/wb_common.c
@@ -98,6 +98,7 @@ static int make_nonstd_fd_internals(int fd, int limit /* Recursion limiter */)
}
/* Parinoia */
if (new_fd < 3) {
+ close(new_fd);
return -1;
}
close(fd);