From 5619633c9edcd496e4e343c20b0982a9ae753992 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 24 Oct 2024 13:58:04 +0200 Subject: [PATCH] cldap: Simplify cldap_netlogon with tevent_req_poll_ntstatus Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- libcli/cldap/cldap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c index 8176946e8b5..cf8d020c5e3 100644 --- a/libcli/cldap/cldap.c +++ b/libcli/cldap/cldap.c @@ -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; } -- 2.47.3