]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-25719 mit-samba: Handle no DB entry in mit_samba_get_pac()
authorAndreas Schneider <asn@samba.org>
Mon, 12 Jul 2021 11:58:57 +0000 (13:58 +0200)
committerJule Anger <janger@samba.org>
Tue, 9 Nov 2021 19:45:34 +0000 (19:45 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14561

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/mit_samba.c

index 3f8b0b9fb2b1571a70e250a540d0576358bf45d4..e7fe67241efc63ce656afb6bc340147cc2bc4d86 100644 (file)
@@ -463,6 +463,10 @@ int mit_samba_get_pac(struct mit_samba_context *smb_ctx,
                                            &upn_dns_info_blob);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(tmp_ctx);
+               if (NT_STATUS_EQUAL(nt_status,
+                                   NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+                       return ENOENT;
+               }
                return EINVAL;
        }