From bf243c1f41d574c2a97f6559019e87c3c04f20c2 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 17 Jan 2022 12:20:15 -0600 Subject: [PATCH] kdc: Fix ENOMEM path null deref (synthetic princs) --- kdc/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdc/misc.c b/kdc/misc.c index e468b47f0..529633f91 100644 --- a/kdc/misc.c +++ b/kdc/misc.c @@ -116,7 +116,7 @@ synthesize_client(krb5_context context, *(e->max_renew) = config->synthetic_clients_max_renew; *(e->max_life) = config->synthetic_clients_max_life; *h = e; - } else { + } else if (e) { hdb_free_entry(context, &null_db, e); } return ret;