1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

cldap: Simplify cldap_netlogon with tevent_req_poll_ntstatus

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2024-10-24 13:58:04 +02:00 committed by Ralph Boehme
parent e1f582965b
commit 5619633c9e

View File

@ -1093,8 +1093,7 @@ NTSTATUS cldap_netlogon(struct cldap_socket *cldap,
return NT_STATUS_NO_MEMORY;
}
if (!tevent_req_poll(req, ev)) {
status = map_nt_error_from_unix_common(errno);
if (!tevent_req_poll_ntstatus(req, ev, &status)) {
TALLOC_FREE(frame);
return status;
}