From fc69057b8b8136db5532a84197413d2a69a3242f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 25 Oct 2011 14:56:38 +0200 Subject: s3:smb2cli_base: make use of map_nt_error_from_unix_common() metze --- source3/libsmb/smb2cli_base.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/smb2cli_base.c') diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c index 3563af12ef..f5d3de0ac7 100644 --- a/source3/libsmb/smb2cli_base.c +++ b/source3/libsmb/smb2cli_base.c @@ -388,7 +388,8 @@ static void smb2cli_writev_done(struct tevent_req *subreq) TALLOC_FREE(subreq); if (nwritten == -1) { /* here, we need to notify all pending requests */ - smb2cli_notify_pending(state->cli, map_nt_error_from_unix(err)); + NTSTATUS status = map_nt_error_from_unix_common(err); + smb2cli_notify_pending(state->cli, status); return; } } @@ -536,7 +537,8 @@ static void smb2cli_inbuf_received(struct tevent_req *subreq) * We need to close the connection and notify * all pending requests. */ - smb2cli_notify_pending(cli, map_nt_error_from_unix(err)); + status = map_nt_error_from_unix_common(err); + smb2cli_notify_pending(cli, status); TALLOC_FREE(frame); return; } -- cgit