1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 17:56:45 +02:00

Manally merged #314 and #317

This commit is contained in:
Sean Qureshi
2013-08-04 03:52:24 -07:00
parent 337d87a3ef
commit 6f9dea8510
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,9 @@ static void execute(ToxWindow* self, char* cmd) {
}
dht.ip.i = resolved_address;
DHT_bootstrap(dht, hex_string_to_bin(key));
unsigned char *binary_string = hex_string_to_bin(key);
DHT_bootstrap(dht, binary_string);
free(binary_string);
}
else if(!strncmp(cmd, "add ", strlen("add "))) {
uint8_t id_bin[32];