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

@@ -1688,6 +1688,9 @@ kadm5_log_nop(kadm5_server_context *context, enum kadm_nop_type nop_type)
return errno;
sp = krb5_storage_emem();
if (sp == NULL)
return krb5_enomem(context->context);
ret = kadm5_log_preamble(context, sp, kadm_nop, off == 0 ? 0 : vno + 1);
if (ret)
goto out;