diff options
Diffstat (limited to 'source3/libads/cldap.c')
-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); |