From 87879783ec9d348698903f7ad02109c424ade752 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Wed, 18 Oct 2017 14:33:59 +0200 Subject: [PATCH] Postpone dealing with upstream derenferencing issue --- src/tools/getdns_query.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/getdns_query.c b/src/tools/getdns_query.c index b886ae59..53e546e2 100644 --- a/src/tools/getdns_query.c +++ b/src/tools/getdns_query.c @@ -1279,8 +1279,9 @@ void read_line_cb(void *userarg) if (listen_count) (void) getdns_context_set_listen_addresses( context, NULL, NULL, NULL); - (void) getdns_context_set_upstream_recursive_servers( - context, NULL); + if (interactive && !query_file) + (void) getdns_context_set_upstream_recursive_servers( + context, NULL); return; } if (query_file && verbosity)