From 7b5eb6137061128f987260ba681231e28ae260d5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 19 Nov 2021 17:00:37 +0100 Subject: [PATCH] -fix warnings --- src/util/crypto_helper_esign.c | 1 - src/util/secmod_common.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c index 5c0d9449d..a73e96889 100644 --- a/src/util/crypto_helper_esign.c +++ b/src/util/crypto_helper_esign.c @@ -417,7 +417,6 @@ more: if (off < sizeof (struct GNUNET_MessageHeader)) continue; msize = ntohs (hdr->size); - GNUNET_assert (msize <= sizeof (buf)); if (off < msize) continue; switch (ntohs (hdr->type)) diff --git a/src/util/secmod_common.c b/src/util/secmod_common.c index 0bcf9ae5f..ff95caf50 100644 --- a/src/util/secmod_common.c +++ b/src/util/secmod_common.c @@ -271,7 +271,6 @@ TES_read_work (void *cls, GNUNET_break_op (0); return GNUNET_SYSERR; } - GNUNET_assert (msize <= sizeof (client->iobuf)); } while (off < msize); if (off > msize)