summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-07-21 20:48:44 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-07-21 20:48:44 +0200
commit9b88339545ecef3b4097bb5ba2608deb997715cb (patch)
treee8cdc719072468ebde5c85381a01d18d995f4084 /src
parentf096bdce8eaeaabc42f2a015bf29c422b3d25719 (diff)
attempt fix #5813
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet-helper-testbed.c6
1 files 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 <http://www.gnu.org/licenses/>.
@@ -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 +