fix null pointer dereference errors

Change-Id: I82a849afe9f432a1084ad2505ce88b1fe4d3d3af
This commit is contained in:
Jeffrey Altman
2019-01-04 01:02:59 -05:00
parent 735039dbdc
commit 00c590e4ff
5 changed files with 21 additions and 2 deletions

View File

@@ -380,6 +380,8 @@ _kadm5_marshal_params(krb5_context context,
krb5_data *out)
{
krb5_storage *sp = krb5_storage_emem();
if (sp == NULL)
return krb5_enomem(context);
krb5_store_int32(sp, params->mask & (KADM5_CONFIG_REALM));