assert non-NULL

This commit is contained in:
Christian Grothoff 2017-06-05 18:05:01 +02:00
parent 0805088fc8
commit 850d84a1b6
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1043,6 +1043,7 @@ reserve_status_cb (void *cls,
case OC_PAYBACK:
xrel = find_command (is,
rel->details.payback.ref);
GNUNET_assert (NULL != xrel);
if (0 == strcmp (cmd->details.reserve_status.reserve_reference,
xrel->details.reserve_withdraw.reserve_reference))
{
@ -1917,8 +1918,10 @@ payback_cb (void *cls,
}
withdraw = find_command (is,
cmd->details.payback.ref);
GNUNET_assert (NULL != withdraw);
reserve = find_command (is,
withdraw->details.reserve_withdraw.reserve_reference);
GNUNET_assert (NULL != reserve);
GNUNET_CRYPTO_eddsa_key_get_public (&reserve->details.admin_add_incoming.reserve_priv.eddsa_priv,
&rp.eddsa_pub);
switch (http_status)