]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Remove unused variable.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 17 Feb 2020 11:56:20 +0000 (12:56 +0100)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 17 Feb 2020 11:56:20 +0000 (12:56 +0100)
doc/Changelog
services/outside_network.c

index 82502bc145248ea382a3eac990f12ede632966d3..9f14eafa5ce074872824fe5085d1776269ecd829 100644 (file)
@@ -1,3 +1,6 @@
+17 February 2020: George
+       - Remove unused variable.
+
 17 February 2020: Wouter
        - contrib/drop2rpz: perl script that converts the Spamhaus DROP-List
          in RPZ-Format, contributed by Andreas Schulze.
index 9876c215089c4ed0d218568ada3a28178385ac9c..80b1f12454d60bd3e36098fbfa7c22abfa62b721 100644 (file)
@@ -1974,7 +1974,6 @@ serviced_udp_callback(struct comm_point* c, void* arg, int error,
 
        sq->pending = NULL; /* removed after callback */
        if(error == NETEVENT_TIMEOUT) {
-               int rto = 0;
                if(sq->status == serviced_query_UDP_EDNS && sq->last_rtt < 5000) {
                        /* fallback to 1480/1280 */
                        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->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,
-                       (time_t)now.tv_sec)))
+                       (time_t)now.tv_sec))
                        log_err("out of memory in UDP exponential backoff");
                if(sq->retry < OUTBOUND_UDP_RETRY) {
                        log_name_addr(VERB_ALGO, "retry query", sq->qbuf+10,