From 3a9b912135183567ff3fe5a3ea8b658315733fdf Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Wed, 14 Mar 2012 13:06:53 +0000 Subject: [PATCH] -fix zero termination --- src/namestore/gnunet-service-namestore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index dc81ccea3..a0107055c 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -1267,6 +1267,7 @@ handle_zone_to_name_it (void *cls, msg_size = sizeof (struct ZoneToNameResponseMessage) + name_len + rd_ser_len + contains_sig * sizeof (struct GNUNET_CRYPTO_RsaSignature); ztnr_msg = GNUNET_malloc (msg_size); + memset(ztnr_msg, 0, msg_size); name_tmp = (char *) &ztnr_msg[1]; rd_tmp = &name_tmp[name_len]; -- 2.25.1