From aa4f45dd12d890ec71f962b2e42376a2b024dee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Wed, 19 Nov 2014 11:54:21 +0100 Subject: [PATCH] DNS query callback should provide Tox ID in binary form. --- src/twc-dns.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/twc-dns.c b/src/twc-dns.c index 830f982..91d0a23 100644 --- a/src/twc-dns.c +++ b/src/twc-dns.c @@ -60,8 +60,11 @@ twc_dns_fd_callback(void *data, int fd) { if (size == TOX_FRIEND_ADDRESS_SIZE * 2) { + uint8_t tox_id[TOX_FRIEND_ADDRESS_SIZE]; + twc_hex2bin(buffer, TOX_FRIEND_ADDRESS_SIZE, tox_id); + callback_info->callback(callback_info->data, - TWC_DNS_RC_OK, (uint8_t *)buffer); + TWC_DNS_RC_OK, tox_id); } else {