From e820452aaa850dc33f5fe955750e289236005c10 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 11 Jun 2015 11:21:12 +0200 Subject: [PATCH] Rm 2 outdated ldns usage cases --- src/stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stub.c b/src/stub.c index 47754451..c671b81d 100644 --- a/src/stub.c +++ b/src/stub.c @@ -293,7 +293,7 @@ is_starttls_response(getdns_network_req *netreq) size_t starttls_name_len = 256, owner_name_len; /* 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; 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. */ do { - query_id = ldns_get_random(); + query_id = arc4random(); query_id_intptr = (intptr_t)query_id; netreq->node.key = (void *)query_id_intptr;