Init netreq dnssec status at netreq init time

This commit is contained in:
Willem Toorop 2015-06-23 16:39:30 +02:00
parent 3631cd658a
commit 5c01df226c
2 changed files with 3 additions and 8 deletions

View File

@ -96,6 +96,9 @@ network_req_init(getdns_network_req *net_req, getdns_dns_req *owner,
net_req->state = NET_REQ_NOT_SENT;
net_req->owner = owner;
net_req->secure = 0;
net_req->bogus = 0;
net_req->upstream = NULL;
net_req->fd = -1;
for (i = 0; i < GETDNS_BASE_TRANSPORT_MAX; i++)

View File

@ -1059,10 +1059,6 @@ stub_udp_read_cb(void *userarg)
}
netreq->response_len = read;
dnsreq->upstreams->current = 0;
/* TODO: DNSSEC */
netreq->secure = 0;
netreq->bogus = 0;
done:
netreq->state = NET_REQ_FINISHED;
priv_getdns_check_dns_req_complete(dnsreq);
@ -1141,10 +1137,6 @@ stub_tcp_read_cb(void *userarg)
netreq->tcp.read_buf = NULL;
dnsreq->upstreams->current = 0;
/* TODO: DNSSEC */
netreq->secure = 0;
netreq->bogus = 0;
stub_cleanup(netreq);
close(netreq->fd);
priv_getdns_check_dns_req_complete(dnsreq);