From b2519d12505949a041a89cbd5c72e8af80ada746 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 14 Mar 2012 13:17:26 +0000 Subject: [PATCH] - additional check --- src/namestore/namestore_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 316b0f40d..9c629b026 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c @@ -258,6 +258,8 @@ handle_lookup_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe, } name = (char *) &msg[1]; + GNUNET_assert ('\0' == name[name_len -1]); + GNUNET_assert ((name_len - 1) == strlen(name)); rd_tmp = &name[name_len]; /* deserialize records */ -- 2.25.1