iprop: Fix coverity warnings

This commit is contained in:
Nicolas Williams
2022-01-19 16:53:45 -06:00
parent 1b213c1082
commit 97cef99f54
2 changed files with 10 additions and 5 deletions

View File

@@ -184,6 +184,8 @@ ihave(krb5_context context, krb5_auth_context auth_context,
krb5_data data;
sp = krb5_storage_from_mem(buf, 8);
if (sp == NULL)
krb5_err(context, IPROPD_RESTART_SLOW, ENOMEM, "Out of memory");
ret = krb5_store_uint32(sp, I_HAVE);
if (ret == 0)
ret = krb5_store_uint32(sp, version);