-check return value

This commit is contained in:
Christian Grothoff 2015-07-14 16:55:59 +02:00
parent f90a745abe
commit 8a9b890e4d

View File

@ -589,6 +589,8 @@ TMH_KS_denomination_key_lookup (const struct TMH_KS_StateHandle *key_state,
&hc);
dki = GNUNET_CONTAINER_multihashmap_get (key_state->denomkey_map,
&hc);
if (NULL == dki)
return NULL;
now = GNUNET_TIME_absolute_get ();
if (now.abs_value_us <
GNUNET_TIME_absolute_ntoh (dki->issue.properties.start).abs_value_us)