summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-04 01:50:28 +0000
committerJeremy Allison <jra@samba.org>1998-06-04 01:50:28 +0000
commit206f5882e7b93fc7e58785e005ea8c238b9b3c35 (patch)
treeb496d8c1da1339224e9e4915b0bf6bce8d0c3cf8 /source3/lib
parenta1c66b009ff2d6ac16b43f2af8eeaea67abb6414 (diff)
downloadsamba-206f5882e7b93fc7e58785e005ea8c238b9b3c35.tar.gz
samba-206f5882e7b93fc7e58785e005ea8c238b9b3c35.tar.bz2
samba-206f5882e7b93fc7e58785e005ea8c238b9b3c35.zip
Fixed file descriptor leak in open_socket_out - this could
cause nmbd to run out of fd's. Test case found by Eloy Paris. Jeremy. (This used to be commit 9e2570317138cc6a7ffdc603564f863ff20139b8)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index b5e52374d9..e53870bf9c 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3714,6 +3714,7 @@ connect_again:
if (ret < 0) {
DEBUG(1,("error connecting to %s:%d (%s)\n",
inet_ntoa(*addr),port,strerror(errno)));
+ close(res);
return -1;
}