summaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-06 18:50:58 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-06 18:50:58 +0100
commit3a18658cf9196ecd8e55d5231818e6ee3b242a43 (patch)
tree3e87d79ac613d0bff557ea0141299d99803af319 /src/set
parent1c09b2424150a791b68762140ae40b5f6f95d5f5 (diff)
check return value
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set_union.c9
1 files 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;
}