mirror of https://github.com/getdnsapi/getdns.git
Put hip server data in wire format
This commit is contained in:
parent
f750f758ff
commit
24e56217f8
|
@ -648,15 +648,9 @@ priv_getdns_equip_dict_with_hip_rdfs(struct getdns_dict* rdata, ldns_rr* rr,
|
|||
}
|
||||
for (i = 1; i < ldns_rr_rd_count(rr) && r == GETDNS_RETURN_GOOD; ++i) {
|
||||
ldns_rdf* server_rdf = ldns_rr_rdf(rr, i);
|
||||
char* name = ldns_rdf2str(server_rdf);
|
||||
if (name == NULL) {
|
||||
r = GETDNS_RETURN_MEMORY_ERROR;
|
||||
break;
|
||||
}
|
||||
server_data.size = strlen(name) + 1;
|
||||
server_data.data = (uint8_t*)name;
|
||||
server_data.size = ldns_rdf_size(server_rdf);
|
||||
server_data.data = ldns_rdf_data(server_rdf);
|
||||
r = getdns_list_set_bindata(servers, i - 1, &server_data);
|
||||
free(name);
|
||||
}
|
||||
if (r != GETDNS_RETURN_GOOD) {
|
||||
getdns_list_destroy(servers);
|
||||
|
|
Loading…
Reference in New Issue