From: Christian Grothoff Date: Wed, 14 Sep 2011 15:48:10 +0000 (+0000) Subject: check return values X-Git-Tag: initial-import-from-subversion-38251~17106 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7f02cc0aa2a7d066f96308642d1e4b1a191bb31b;p=oweals%2Fgnunet.git check return values --- diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index f8d5f76f1..d1d559b77 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -627,7 +627,8 @@ setup_flood_message (unsigned int slot, struct GNUNET_TIME_Absolute ts) fm->timestamp = GNUNET_TIME_absolute_hton (ts); fm->pkey = my_public_key; fm->proof_of_work = my_proof; - GNUNET_CRYPTO_rsa_sign (my_private_key, &fm->purpose, &fm->signature); + GNUNET_assert (GNUNET_OK == + GNUNET_CRYPTO_rsa_sign (my_private_key, &fm->purpose, &fm->signature)); } @@ -815,9 +816,10 @@ find_proof (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if (ntohl (size_estimate_messages[i].hop_count) == 0) { size_estimate_messages[i].proof_of_work = my_proof; - GNUNET_CRYPTO_rsa_sign (my_private_key, - &size_estimate_messages[i].purpose, - &size_estimate_messages[i].signature); + GNUNET_assert (GNUNET_OK == + GNUNET_CRYPTO_rsa_sign (my_private_key, + &size_estimate_messages[i].purpose, + &size_estimate_messages[i].signature)); } write_proof (); return;