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:
parent
e1f582965b
commit
5619633c9e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user