Use tevent_req_poll_ntstatus
[samba.git] / source3 / libsmb / clifsinfo.c
index d4e4451a88398dfbcc89d2797051a35cff9b1c77..907d1d254dfbe71c2ef3c2002b52fcf26c521a06 100644 (file)
@@ -149,8 +149,7 @@ NTSTATUS cli_unix_extensions_version(struct cli_state *cli, uint16_t *pmajor,
                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;
        }