Fix reversed IPv6 to domain under our control

This commit is contained in:
Willem Toorop 2015-02-19 10:31:18 +01:00
parent 9a0f4700ea
commit af47cf81a3
3 changed files with 3 additions and 3 deletions

View File

@ -311,7 +311,7 @@ void assert_ptr_in_answer(struct extracted_response *ex_response)
ptr_records++;
}
ck_assert_msg(ptr_records == 1, "Expected to find one PTR record in answer section, got %d", ptr_records);
ck_assert_msg(ptr_records > 0, "Answer did not contain any PTR records");
}
void destroy_callbackfn(struct getdns_context *context,

View File

@ -401,7 +401,7 @@
struct getdns_context *context = NULL;
struct getdns_dict *address = NULL;
struct getdns_bindata address_type = { 5, (void *)"IPv6" };
struct getdns_bindata address_data = { 16, (void *)"\x26\x07\xf8\xb0\x40\x06\x08\x02\x00\x00\x00\x00\x00\x00\x10\x04" };
struct getdns_bindata address_data = { 16, (void *)"\x2a\x04\xb9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x37" };
void* eventloop = NULL;
getdns_transaction_t transaction_id = 0;

View File

@ -338,7 +338,7 @@
struct getdns_context *context = NULL;
struct getdns_dict *address = NULL;
struct getdns_bindata address_type = { 5, (void *)"IPv6" };
struct getdns_bindata address_data = { 16, (void *)"\x26\x07\xf8\xb0\x40\x06\x08\x02\x00\x00\x00\x00\x00\x00\x10\x04" };
struct getdns_bindata address_data = { 16, (void *)"\x2a\x04\xb9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x37" };
struct getdns_dict *response = NULL;
CONTEXT_CREATE(TRUE);