From: Štěpán Balážik Date: Thu, 14 Jan 2021 17:32:43 +0000 (+0100) Subject: selection: minor fixes in commented code X-Git-Tag: v5.3.0~15^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=464c41ec9c9ada59e2142f7cf76436790af9df00;p=thirdparty%2Fknot-resolver.git selection: minor fixes in commented code These will become useful once we actually use it… --- diff --git a/lib/selection.c b/lib/selection.c index 33161db96..486ce68d4 100644 --- a/lib/selection.c +++ b/lib/selection.c @@ -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); }