summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-25 14:56:38 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-25 17:58:33 +0200
commitfc69057b8b8136db5532a84197413d2a69a3242f (patch)
tree1ad6f4f7c7e5613f1f8d5f7f5ee27287dd927809 /source3/libsmb
parentfd261fea74dedefe68b9b37fdaf86e633ffb3c75 (diff)
downloadsamba-fc69057b8b8136db5532a84197413d2a69a3242f.tar.gz
samba-fc69057b8b8136db5532a84197413d2a69a3242f.tar.bz2
samba-fc69057b8b8136db5532a84197413d2a69a3242f.zip
s3:smb2cli_base: make use of map_nt_error_from_unix_common()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smb2cli_base.c6
1 files changed, 4 insertions, 2 deletions
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;
}