]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Initialize out parameter of samba_kdc_get_user_info_from_db()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 3 Oct 2023 04:01:07 +0000 (17:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Oct 2023 23:13:32 +0000 (23:13 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/pac-glue.c

index 1180db9d04f90165ff5f3d3d4b4d5fae0a1f61df..19164318e4152d4eb412697287fe79cb5fcf35dc 100644 (file)
@@ -1143,6 +1143,8 @@ krb5_error_code samba_kdc_get_user_info_from_db(TALLOC_CTX *mem_ctx,
                return KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN;
        }
 
+       *info_out = NULL;
+
        if (entry->info_from_db == NULL) {
                struct loadparm_context *lp_ctx = entry->kdc_db_ctx->lp_ctx;