DNS query callback should provide Tox ID in binary form.

This commit is contained in:
Håvard Pettersson 2014-11-19 11:54:21 +01:00
parent 20bcc0700a
commit aa4f45dd12

View File

@ -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
{