]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Don’t overwrite error code
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 26 Jun 2023 05:09:22 +0000 (17:09 +1200)
committerStefan Metzmacher <metze@samba.org>
Mon, 26 Jun 2023 12:11:30 +0000 (12:11 +0000)
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

source4/kdc/wdc-samba4.c

index be1500a4804ec27a9bd059d2c03f07933c9cea55..6b3731d55de5e81a5c1a7c1d791fe1d7b67cdf33 100644 (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;
                }
        }