From 206f5882e7b93fc7e58785e005ea8c238b9b3c35 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 Jun 1998 01:50:28 +0000 Subject: 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) --- source3/lib/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/lib') 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; } -- cgit