From 30c0e93156817a469a125f5fe7bb466f3bee4cb7 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 6 Sep 2006 11:53:13 +0000 Subject: r18162: Close socket when the CLDAP request has failed. Guenther (This used to be commit 714ea3ceab714e23e97eb3e4d7261456a18abbac) --- source3/libads/cldap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c index 8e34e27353..5f7f1b179f 100644 --- a/source3/libads/cldap.c +++ b/source3/libads/cldap.c @@ -297,6 +297,7 @@ BOOL ads_cldap_netlogon(const char *server, const char *realm, struct cldap_net ret = send_cldap_netlogon(sock, realm, global_myname(), 6); if (ret != 0) { + close(sock); return False; } ret = recv_cldap_netlogon(sock, reply); -- cgit