kdc: Fix ENOMEM path null deref (synthetic princs)

This commit is contained in:
Nicolas Williams
2022-01-17 12:20:15 -06:00
parent a25cf6335e
commit bf243c1f41

View File

@@ -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;