From 906d173ca43a407752b2ee14fa45c28444a5a98f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 5 Apr 2013 15:08:22 +0200 Subject: libsmbclient: Use tevent_req_poll_ntstatus in cli_openx Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/clifile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/libsmb') 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; } -- cgit