summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-03-29 10:08:45 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2022-03-29 10:08:45 +0200
commit51bb2c989c5553b0b7963426e964ecf85d49de7d (patch)
tree47a998b2193588c1a15764777a8411524337da3f
parentfcc4246bf03b01df16e69fafe8fba058a0a2e01b (diff)
-fix
-rw-r--r--src/gns/plugin_block_gns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c
index fd9c99cb4..aad1f1583 100644
--- a/src/gns/plugin_block_gns.c
+++ b/src/gns/plugin_block_gns.c
@@ -181,7 +181,7 @@ block_plugin_gns_check_block (void *cls,
size_t block_size)
{
const struct GNUNET_GNSRECORD_Block *gblock;
-
+
if (GNUNET_BLOCK_TYPE_GNS_NAMERECORD != type)
{
GNUNET_break (0);
@@ -243,7 +243,7 @@ block_plugin_gns_check_reply (void *cls,
return GNUNET_BLOCK_REPLY_TYPE_NOT_SUPPORTED;
}
GNUNET_assert (reply_block_size >= sizeof(struct GNUNET_GNSRECORD_Block));
- GNUNET_assert (GNUNET_GNSRECORD_block_get_size (block) > reply_block_size);
+ GNUNET_assert (GNUNET_GNSRECORD_block_get_size (block) < reply_block_size);
GNUNET_CRYPTO_hash (reply_block,
reply_block_size,
&chash);