From dc5a78b154183d42148277d8d7fd55f84d4c111c Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 17 Oct 2017 14:19:59 +0200 Subject: [PATCH] Printing something which is not on stack (causing segfault in some cases) --- src/stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stub.c b/src/stub.c index 31bfb786..5eb1705a 100644 --- a/src/stub.c +++ b/src/stub.c @@ -1907,8 +1907,8 @@ upstream_select_stateful(getdns_network_req *netreq, getdns_transport_list_t tra upstream->conn_state = GETDNS_CONN_CLOSED; upstream->conn_backoff_interval = 1; _getdns_upstream_log(upstream, GETDNS_LOG_UPSTREAM_STATS, GETDNS_LOG_NOTICE, - "%-40s : No valid upstreams... promoting backed-off upstream %s for re-try...\n", - upstreams->upstreams[i].addr_str); + "%-40s : No valid upstreams... promoting this backed-off upstream for re-try...\n", + upstream->addr_str); return upstream; }