mirror of
https://github.com/samba-team/samba.git
synced 2025-10-23 11:33:16 +03:00
r22358: Use gss error to NTSTATUS mapping function for errors.
Jeremy.
(This used to be commit 11fa0ca9e2)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e8d19d5e1a
commit
5cee3be014
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user