Split up async_req into a generic and a NTSTATUS specific part
[tprouty/samba.git] / source3 / libsmb / async_smb.c
index 18e5a71ee237684fb0ec30f585c06debef3bf6a6..e579d1c9f0bcc32b7cdfda27ae2fbe6390f721ea 100644 (file)
@@ -979,7 +979,7 @@ static void handle_incoming_pdu(struct cli_state *cli)
                   nt_errstr(status)));
 
        for (req = cli->outstanding_requests; req; req = req->next) {
-               async_req_error(req->async[0], status);
+               async_req_nterror(req->async[0], status);
        }
        return;
 }
@@ -1110,7 +1110,7 @@ static void cli_state_handler(struct event_context *event_ctx,
                num_async = req->num_async;
 
                for (i=0; i<num_async; i++) {
-                       async_req_error(req->async[i], status);
+                       async_req_nterror(req->async[i], status);
                }
        }
        TALLOC_FREE(cli->fd_event);