1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:kdc: Don’t overwrite error code

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 26 12:11:30 UTC 2023 on atb-devel-224
This commit is contained in:
Joseph Sutton 2023-06-26 17:09:22 +12:00 committed by Stefan Metzmacher
parent 192024e840
commit 7828c6535c

View File

@ -503,7 +503,7 @@ static krb5_error_code samba_wdc_reget_pac(void *priv, astgs_request_t r,
krb5_error_code ret2;
ret2 = hdb_samba4_set_steal_server_audit_info(r, server_audit_info);
if (ret2) {
if (ret == 0) {
ret = ret2;
}
}
@ -511,7 +511,7 @@ static krb5_error_code samba_wdc_reget_pac(void *priv, astgs_request_t r,
krb5_error_code ret2;
ret2 = hdb_samba4_set_ntstatus(r, status, ret);
if (ret2) {
if (ret == 0) {
ret = ret2;
}
}