diff options
author | Günther Deschner <gd@samba.org> | 2006-09-06 11:53:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:43:29 -0500 |
commit | 30c0e93156817a469a125f5fe7bb466f3bee4cb7 (patch) | |
tree | b1372eea8e855bdfd27e1554957c1dcb48d8a766 /source3/libads | |
parent | 030cf71d618e5522f948b32292e3612c9dd4ef24 (diff) | |
download | samba-30c0e93156817a469a125f5fe7bb466f3bee4cb7.tar.gz samba-30c0e93156817a469a125f5fe7bb466f3bee4cb7.tar.bz2 samba-30c0e93156817a469a125f5fe7bb466f3bee4cb7.zip |
r18162: Close socket when the CLDAP request has failed.
Guenther
(This used to be commit 714ea3ceab714e23e97eb3e4d7261456a18abbac)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/cldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |