mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r18162: Close socket when the CLDAP request has failed.
Guenther
This commit is contained in:
parent
95788cb291
commit
714ea3ceab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user