From e871f8368c8a1f0867f68f656875e4c37c26f298 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 29 Nov 2018 22:26:21 +0100 Subject: finish (?) libgnunetatstransport for now --- src/fs/gnunet-service-fs.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/fs') diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index fea22f279..04d483847 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -965,15 +965,9 @@ static int check_client_index_start (void *cls, const struct IndexStartMessage *ism) { - uint16_t msize; char *fn; - msize = ntohs (ism->header.size); - if (((const char *) ism)[msize - 1] != '\0') - { - GNUNET_break (0); - return GNUNET_SYSERR; - } + GNUNET_MQ_check_zero_termination (ism); if (0 != ism->reserved) { GNUNET_break (0); -- cgit v1.2.3