diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-07-07 12:18:35 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-07-07 12:18:35 +0000 |
commit | adbd23e743ace44072b503b77a7b9a043f1aa674 (patch) | |
tree | 9533ff5688f1548c58818ed298751b653d190c8d /src/namecache | |
parent | 6e956d0ced722dbfbd8adeb303ad7006aed6b025 (diff) |
-coverity
Diffstat (limited to 'src/namecache')
-rw-r--r-- | src/namecache/plugin_namecache_flat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namecache/plugin_namecache_flat.c b/src/namecache/plugin_namecache_flat.c index 01ab414b0c..a4b03ea55a 100644 --- a/src/namecache/plugin_namecache_flat.c +++ b/src/namecache/plugin_namecache_flat.c @@ -159,8 +159,8 @@ database_setup (struct Plugin *plugin) break; line = strtok (NULL, "\n"); entry = GNUNET_malloc (sizeof (struct FlatFileEntry)); - GNUNET_CRYPTO_hash_from_string (query, - &entry->query); + GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_hash_from_string (query, + &entry->query)); GNUNET_STRINGS_base64_decode (block, strlen (block), &block_buffer); |