summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-05 14:58:02 +0200
committerJeremy Allison <jra@samba.org>2013-04-11 14:44:22 -0700
commit80097ac12234b3a7be077a2699d79f0f3dec53f6 (patch)
tree115b5ed550d5fc6ca4ffa09ab47706e09007686c /source3/libsmb
parent47a1de356eb686cee60c4d1bd22d655b257fd041 (diff)
downloadsamba-80097ac12234b3a7be077a2699d79f0f3dec53f6.tar.gz
samba-80097ac12234b3a7be077a2699d79f0f3dec53f6.tar.bz2
samba-80097ac12234b3a7be077a2699d79f0f3dec53f6.zip
libsmbclient: Use tevent_req_poll_ntstatus in cli_tcon_andx
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 36970cc4db..0397b4878f 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -2614,8 +2614,7 @@ NTSTATUS cli_tcon_andx(struct cli_state *cli, const char *share,
goto fail;
}
- if (!tevent_req_poll(req, ev)) {
- status = map_nt_error_from_unix(errno);
+ if (!tevent_req_poll_ntstatus(req, ev, &status)) {
goto fail;
}