summaryrefslogtreecommitdiff
path: root/other/bootstrap_serverdaemon/tox_bootstrap_daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_serverdaemon/tox_bootstrap_daemon.c')
-rw-r--r--other/bootstrap_serverdaemon/tox_bootstrap_daemon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/other/bootstrap_serverdaemon/tox_bootstrap_daemon.c b/other/bootstrap_serverdaemon/tox_bootstrap_daemon.c
index f2c54bb1..7f1f652c 100644
--- a/other/bootstrap_serverdaemon/tox_bootstrap_daemon.c
+++ b/other/bootstrap_serverdaemon/tox_bootstrap_daemon.c
@@ -266,8 +266,9 @@ int bootstrap_from_config(char *cfg_file_path, DHT *dht, int enable_ipv6)
266 goto next; 266 goto next;
267 } 267 }
268 268
269 const int address_resolved = DHT_bootstrap_from_address(dht, bs_address, enable_ipv6, htons(bs_port), 269 uint8_t *bs_public_key_bin = hex_string_to_bin((char *)bs_public_key);
270 hex_string_to_bin((char *)bs_public_key)); 270 const int address_resolved = DHT_bootstrap_from_address(dht, bs_address, enable_ipv6, htons(bs_port), bs_public_key_bin);
271 free(bs_public_key_bin);
271 272
272 if (!address_resolved) { 273 if (!address_resolved) {
273 syslog(LOG_WARNING, "Bootstrap server #%d: Invalid '%s': %s. Skipping the server.\n", i, NAME_ADDRESS, bs_address); 274 syslog(LOG_WARNING, "Bootstrap server #%d: Invalid '%s': %s. Skipping the server.\n", i, NAME_ADDRESS, bs_address);