fix potential NPE
This commit is contained in:
parent
5d67cb9c4f
commit
32ba50a0f0
@ -1924,6 +1924,7 @@ TEH_KS_acquire_ (struct GNUNET_TIME_Absolute now,
|
||||
{
|
||||
os = internal_key_state;
|
||||
internal_key_state = make_fresh_key_state (now);
|
||||
if (NULL != internal_key_state)
|
||||
internal_key_state->refcnt = 1; /* alias from #internal_key_state */
|
||||
if (NULL != os)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user