From: Christian Grothoff Date: Sat, 6 Jan 2018 17:50:58 +0000 (+0100) Subject: check return value X-Git-Tag: gnunet-0.11.0rc0~2^2~16^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3a18658cf9196ecd8e55d5231818e6ee3b242a43;p=oweals%2Fgnunet.git check return value --- diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index 9586dcf27..219cc6235 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c @@ -389,10 +389,11 @@ get_ibf_key (const struct GNUNET_HashCode *src) struct IBF_Key key; uint16_t salt = 0; - GNUNET_CRYPTO_kdf (&key, sizeof (key), - src, sizeof *src, - &salt, sizeof (salt), - NULL, 0); + GNUNET_assert (GNUNET_OK == + GNUNET_CRYPTO_kdf (&key, sizeof (key), + src, sizeof *src, + &salt, sizeof (salt), + NULL, 0)); return key; }