summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-19 01:26:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:29 -0500
commit5cee3be0140a7acbd3b75a4d7aa0fbaff8c12960 (patch)
tree3ef7b265469c050910c9b73b37b14c8a856e5443
parente8d19d5e1aa6a101300879e94faacc8c4b3509a5 (diff)
downloadsamba-5cee3be0140a7acbd3b75a4d7aa0fbaff8c12960.tar.gz
samba-5cee3be0140a7acbd3b75a4d7aa0fbaff8c12960.tar.bz2
samba-5cee3be0140a7acbd3b75a4d7aa0fbaff8c12960.zip
r22358: Use gss error to NTSTATUS mapping function for errors.
Jeremy. (This used to be commit 11fa0ca9e21d478a4b79b8ca1e92936b26b03fe0)
-rw-r--r--source3/libsmb/smb_seal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c
index 836bd0a38f..19092bd8c8 100644
--- a/source3/libsmb/smb_seal.c
+++ b/source3/libsmb/smb_seal.c
@@ -191,8 +191,7 @@ static NTSTATUS common_gss_decrypt_buffer(struct smb_tran_enc_state_gss *gss_sta
ADS_STATUS adss = ADS_ERROR_GSS(ret, minor);
DEBUG(0,("common_gss_encrypt_buffer: gss_unwrap failed. Error %s\n",
ads_errstr(adss) ));
- /* Um - no mapping for gss-errs to NTSTATUS yet. */
- return ads_ntstatus(adss);
+ return map_nt_error_from_gss(ret, minor);
}
if (out_buf.length > in_buf.length) {
@@ -248,8 +247,7 @@ static NTSTATUS common_gss_encrypt_buffer(struct smb_tran_enc_state_gss *gss_sta
ADS_STATUS adss = ADS_ERROR_GSS(ret, minor);
DEBUG(0,("common_gss_encrypt_buffer: gss_wrap failed. Error %s\n",
ads_errstr(adss) ));
- /* Um - no mapping for gss-errs to NTSTATUS yet. */
- return ads_ntstatus(adss);
+ return map_nt_error_from_gss(ret, minor);
}
if (!flags_got) {