- Remove unused variable.

This commit is contained in:
George Thessalonikefs 2020-02-17 12:56:20 +01:00
parent a9b7638f4b
commit 4b354d38c1
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,6 @@
17 February 2020: George
- Remove unused variable.
17 February 2020: Wouter 17 February 2020: Wouter
- contrib/drop2rpz: perl script that converts the Spamhaus DROP-List - contrib/drop2rpz: perl script that converts the Spamhaus DROP-List
in RPZ-Format, contributed by Andreas Schulze. in RPZ-Format, contributed by Andreas Schulze.

View file

@ -1974,7 +1974,6 @@ serviced_udp_callback(struct comm_point* c, void* arg, int error,
sq->pending = NULL; /* removed after callback */ sq->pending = NULL; /* removed after callback */
if(error == NETEVENT_TIMEOUT) { if(error == NETEVENT_TIMEOUT) {
int rto = 0;
if(sq->status == serviced_query_UDP_EDNS && sq->last_rtt < 5000) { if(sq->status == serviced_query_UDP_EDNS && sq->last_rtt < 5000) {
/* fallback to 1480/1280 */ /* fallback to 1480/1280 */
sq->status = serviced_query_UDP_EDNS_FRAG; sq->status = serviced_query_UDP_EDNS_FRAG;
@ -1990,9 +1989,9 @@ serviced_udp_callback(struct comm_point* c, void* arg, int error,
sq->status = serviced_query_UDP_EDNS; sq->status = serviced_query_UDP_EDNS;
} }
sq->retry++; sq->retry++;
if(!(rto=infra_rtt_update(outnet->infra, &sq->addr, sq->addrlen, if(!infra_rtt_update(outnet->infra, &sq->addr, sq->addrlen,
sq->zone, sq->zonelen, sq->qtype, -1, sq->last_rtt, sq->zone, sq->zonelen, sq->qtype, -1, sq->last_rtt,
(time_t)now.tv_sec))) (time_t)now.tv_sec))
log_err("out of memory in UDP exponential backoff"); log_err("out of memory in UDP exponential backoff");
if(sq->retry < OUTBOUND_UDP_RETRY) { if(sq->retry < OUTBOUND_UDP_RETRY) {
log_name_addr(VERB_ALGO, "retry query", sq->qbuf+10, log_name_addr(VERB_ALGO, "retry query", sq->qbuf+10,