check return value
authorChristian Grothoff <christian@grothoff.org>
Sat, 6 Jan 2018 17:50:58 +0000 (18:50 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 6 Jan 2018 17:50:58 +0000 (18:50 +0100)
src/set/gnunet-service-set_union.c

index 9586dcf27fd1f8fba5c12ebe75aec6cd395ee33a..219cc6235c66a777d565cbc1b0bb53eba26bf182 100644 (file)
@@ -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;
 }