From 464c41ec9c9ada59e2142f7cf76436790af9df00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Thu, 14 Jan 2021 18:32:43 +0100 Subject: [PATCH] selection: minor fixes in commented code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These will become useful once we actually use it… --- lib/selection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.2