diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-07-21 20:48:44 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-07-21 20:48:44 +0200 |
commit | 9b88339545ecef3b4097bb5ba2608deb997715cb (patch) | |
tree | e8cdc719072468ebde5c85381a01d18d995f4084 /src/testbed | |
parent | f096bdce8eaeaabc42f2a015bf29c422b3d25719 (diff) | |
download | gnunet-9b88339545ecef3b4097bb5ba2608deb997715cb.tar.gz gnunet-9b88339545ecef3b4097bb5ba2608deb997715cb.zip |
attempt fix #5813
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/gnunet-helper-testbed.c | 6 |
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 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -345,8 +345,8 @@ tokenizer_cb (void *cls, | |||
345 | ul_config_size = (uLongf) ntohs (msg->config_size); | 345 | ul_config_size = (uLongf) ntohs (msg->config_size); |
346 | config = GNUNET_malloc (ul_config_size); | 346 | config = GNUNET_malloc (ul_config_size); |
347 | xconfig_size = | 347 | xconfig_size = |
348 | ntohs (message->size) - (trusted_ip_size + 1 + | 348 | msize - (trusted_ip_size + 1 + hostname_size + |
349 | sizeof (struct GNUNET_TESTBED_HelperInit)); | 349 | sizeof (struct GNUNET_TESTBED_HelperInit)); |
350 | if (Z_OK != | 350 | if (Z_OK != |
351 | uncompress ((Bytef *) config, &ul_config_size, | 351 | uncompress ((Bytef *) config, &ul_config_size, |
352 | (const Bytef *) (trusted_ip + trusted_ip_size + 1 + | 352 | (const Bytef *) (trusted_ip + trusted_ip_size + 1 + |