]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
selection: minor fixes in commented code
authorŠtěpán Balážik <stepan.balazik@nic.cz>
Thu, 14 Jan 2021 17:32:43 +0000 (18:32 +0100)
committerŠtěpán Balážik <stepan.balazik@nic.cz>
Mon, 25 Jan 2021 14:42:55 +0000 (15:42 +0100)
These will become useful once we actually use it…

lib/selection.c

index 33161db9694c1328459907c105293922a7f0fee5..486ce68d47fbd9df86c7b691453e41469bc5fef2 100644 (file)
@@ -231,7 +231,7 @@ void update_address_state(struct address_state *state, union inaddr *address,
 {
        check_tls_capable(state, qry->request, &address->ip);
        /* TODO: uncomment this once we actually use the information it collects
-       check_tcp_connections(address_state, qry->request, &tmp_address.ip);
+       check_tcp_connections(address_state, qry->request, &address->ip);
        */
        check_network_settings(state, address_len, qry->flags.NO_IPV4,
                               qry->flags.NO_IPV6);
@@ -244,7 +244,7 @@ void update_address_state(struct address_state *state, union inaddr *address,
        // This is sometimes useful for debugging, but usually too verbose
        WITH_VERBOSE(qry)
        {
-               const char *ns_str = kr_straddr(&tmp_address.ip);
+               const char *ns_str = kr_straddr(&address->ip);
                VERBOSE_MSG(qry, "rtt of %s is %d, variance is %d\n", ns_str,
                            state->rtt_state.srtt, state->rtt_state.variance);
        }