summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-05 15:08:22 +0200
committerJeremy Allison <jra@samba.org>2013-04-11 14:45:10 -0700
commit906d173ca43a407752b2ee14fa45c28444a5a98f (patch)
tree3c1f3914539e39a4f70546bb1d49ac9fe6447156
parent6bed164c1553d9b031c7d1b85e642540adcafc1c (diff)
downloadsamba-906d173ca43a407752b2ee14fa45c28444a5a98f.tar.gz
samba-906d173ca43a407752b2ee14fa45c28444a5a98f.tar.bz2
samba-906d173ca43a407752b2ee14fa45c28444a5a98f.zip
libsmbclient: Use tevent_req_poll_ntstatus in cli_openx
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/libsmb/clifile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 43218bfe70..a248a46845 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -2293,8 +2293,7 @@ NTSTATUS cli_openx(struct cli_state *cli, const char *fname, int flags,
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;
}