]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
cldap: Simplify cldap_netlogon with tevent_req_poll_ntstatus
authorVolker Lendecke <vl@samba.org>
Thu, 24 Oct 2024 11:58:04 +0000 (13:58 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 25 Oct 2024 07:55:34 +0000 (07:55 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/cldap/cldap.c

index 8176946e8b5734098e567e8fc567286415f4edcd..cf8d020c5e396a911f26cc5bea6b10d15ae4d131 100644 (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;
        }