diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-07 06:04:28 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-07 06:04:28 +0000 |
commit | 9378cbb019f9b28cf94d877faa0430ee989f8798 (patch) | |
tree | 24fbd0fc709f2d676ff75d08605e127d4fbdfc54 | |
parent | 885f4f9379b48e74de132d6e6c24f11e8b06ce26 (diff) | |
download | samba-9378cbb019f9b28cf94d877faa0430ee989f8798.tar.gz samba-9378cbb019f9b28cf94d877faa0430ee989f8798.tar.bz2 samba-9378cbb019f9b28cf94d877faa0430ee989f8798.zip |
Don't leak file desciptors in this (impossible?) error case.
(This used to be commit b440418f13b840860be42690bf475c1ee3cb3647)
-rw-r--r-- | source3/nsswitch/wb_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c index 0d1be4d5d1..88bda4eabe 100644 --- a/source3/nsswitch/wb_common.c +++ b/source3/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); |