From 9b88339545ecef3b4097bb5ba2608deb997715cb Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sun, 21 Jul 2019 20:48:44 +0200 Subject: [PATCH] attempt fix #5813 --- src/testbed/gnunet-helper-testbed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c index 687a54bcd..aaa65ed61 100644 --- a/src/testbed/gnunet-helper-testbed.c +++ b/src/testbed/gnunet-helper-testbed.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 . @@ -345,8 +345,8 @@ tokenizer_cb (void *cls, ul_config_size = (uLongf) ntohs (msg->config_size); config = GNUNET_malloc (ul_config_size); xconfig_size = - ntohs (message->size) - (trusted_ip_size + 1 + - sizeof (struct GNUNET_TESTBED_HelperInit)); + msize - (trusted_ip_size + 1 + hostname_size + + sizeof (struct GNUNET_TESTBED_HelperInit)); if (Z_OK != uncompress ((Bytef *) config, &ul_config_size, (const Bytef *) (trusted_ip + trusted_ip_size + 1 + -- 2.25.1