s3:libsmb: make use of map_nt_error_from_unix_common() in async_smb.c
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Oct 2011 22:49:08 +0000 (00:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 25 Oct 2011 01:21:06 +0000 (03:21 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Oct 25 03:21:06 CEST 2011 on sn-devel-104

source3/libsmb/async_smb.c

index 587e0e36d849e9b938cd8d3f5915736c07116f4e..933b7e8c84666a13ccf9699847b113f8e62f1967 100644 (file)
@@ -597,7 +597,7 @@ static void cli_smb_sent(struct tevent_req *subreq)
        nwritten = writev_recv(subreq, &err);
        TALLOC_FREE(subreq);
        if (nwritten == -1) {
-               NTSTATUS status = map_nt_error_from_unix(err);
+               NTSTATUS status = map_nt_error_from_unix_common(err);
                cli_state_notify_pending(state->cli, status);
                return;
        }
@@ -637,7 +637,7 @@ static void cli_smb_received(struct tevent_req *subreq)
        TALLOC_FREE(subreq);
        cli->conn.read_smb_req = NULL;
        if (received == -1) {
-               status = map_nt_error_from_unix(err);
+               status = map_nt_error_from_unix_common(err);
                cli_state_notify_pending(cli, status);
                TALLOC_FREE(frame);
                return;