diff options
author | Volker Lendecke <vl@samba.org> | 2015-02-25 20:42:33 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-02-26 18:51:10 +0100 |
commit | e4bded6551864979804d8c1e14196fe8e12cee2e (patch) | |
tree | ebef237006bc7a6908b546187593f0a3d5925901 /libcli | |
parent | 1237b006d5fad9523fb7e7bf9ecb09df66afb7f6 (diff) | |
download | samba-e4bded6551864979804d8c1e14196fe8e12cee2e.tar.gz |
libsmb: Use tevent_req_poll_ntstatus
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb1cli_trans.c | 3 | ||||
-rw-r--r-- | libcli/smb/smbXcli_base.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/libcli/smb/smb1cli_trans.c b/libcli/smb/smb1cli_trans.c index 38d4e2e95f4..59888ba73cb 100644 --- a/libcli/smb/smb1cli_trans.c +++ b/libcli/smb/smb1cli_trans.c @@ -894,8 +894,7 @@ NTSTATUS smb1cli_trans(TALLOC_CTX *mem_ctx, struct smbXcli_conn *conn, goto fail; } - if (!tevent_req_poll(req, ev)) { - status = map_nt_error_from_unix_common(errno); + if (!tevent_req_poll_ntstatus(req, ev, &status)) { goto fail; } diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 2b34980afcb..5773ab3d18c 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -590,9 +590,8 @@ NTSTATUS smbXcli_conn_samba_suicide(struct smbXcli_conn *conn, if (req == NULL) { goto fail; } - ok = tevent_req_poll(req, ev); + ok = tevent_req_poll_ntstatus(req, ev, &status); if (!ok) { - status = map_nt_error_from_unix_common(errno); goto fail; } status = smbXcli_conn_samba_suicide_recv(req); @@ -4876,9 +4875,8 @@ NTSTATUS smbXcli_negprot(struct smbXcli_conn *conn, if (req == NULL) { goto fail; } - ok = tevent_req_poll(req, ev); + ok = tevent_req_poll_ntstatus(req, ev, &status); if (!ok) { - status = map_nt_error_from_unix_common(errno); goto fail; } status = smbXcli_negprot_recv(req); |