From 3a18658cf9196ecd8e55d5231818e6ee3b242a43 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 6 Jan 2018 18:50:58 +0100 Subject: [PATCH] check return value --- src/set/gnunet-service-set_union.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } -- 2.25.1