diff options
-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 + |