Rm 2 outdated ldns usage cases

This commit is contained in:
Willem Toorop 2015-06-11 11:21:12 +02:00
parent cc970b8a8d
commit e820452aaa
1 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ is_starttls_response(getdns_network_req *netreq)
size_t starttls_name_len = 256, owner_name_len; size_t starttls_name_len = 256, owner_name_len;
/* Servers that are not STARTTLS aware will refuse the CH query*/ /* Servers that are not STARTTLS aware will refuse the CH query*/
if (LDNS_RCODE_NOERROR != GLDNS_RCODE_WIRE(netreq->response)) if (GLDNS_RCODE_NOERROR != GLDNS_RCODE_WIRE(netreq->response))
return 0; return 0;
if (GLDNS_ANCOUNT(netreq->response) != 1) if (GLDNS_ANCOUNT(netreq->response) != 1)
@ -983,7 +983,7 @@ stub_tls_write(getdns_upstream *upstream, getdns_tcp_state *tcp,
* by query_id in the process. * by query_id in the process.
*/ */
do { do {
query_id = ldns_get_random(); query_id = arc4random();
query_id_intptr = (intptr_t)query_id; query_id_intptr = (intptr_t)query_id;
netreq->node.key = (void *)query_id_intptr; netreq->node.key = (void *)query_id_intptr;