]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: don't return ENOENT from samba_kdc_get_claims_data[_from_pac]
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Feb 2025 13:23:05 +0000 (14:23 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 22 Feb 2025 22:06:39 +0000 (22:06 +0000)
This will matter in the next commits.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/kdc/pac-glue.c

index 644cc526318031fddd5e1eb1507253564245cd9c..5c179049b38980d0170c780e434dbbff53ee6347 100644 (file)
@@ -2918,6 +2918,8 @@ krb5_error_code samba_kdc_get_claims_data_from_pac(TALLOC_CTX *mem_ctx,
                                   &claims_info);
        if (code == ENOENT) {
                /* OK. */
+               krb5_clear_error_message(context);
+               code = 0;
        } else if (code != 0) {
                DBG_ERR("Error getting CLIENT_CLAIMS_INFO from PAC\n");
                goto out;