From bac0f66112c4d6b490fb1183b4cdfc379f961a62 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Sat, 9 Nov 2019 19:41:37 +0100 Subject: [PATCH] Earlier initialisation of DNS HAS_* related vars This fixes a bug e.g. when supplying a proxy by a DNS name, testssl couldn't resolve the name as the HAS_ variables initialized by ``check_resolver_bins()`` was done later than ``check_proxy()``. The patch just puts ``check_resolver_bins()`` earlier in "main" --- testssl.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index f295cd3..6180a53 100755 --- a/testssl.sh +++ b/testssl.sh @@ -19760,11 +19760,12 @@ lets_roll() { choose_printf prepare_debug ; stopwatch parse prepare_arrays ; stopwatch prepare_arrays + check_resolver_bins mybanner check_proxy check4openssl_oldfarts check_bsd_mount - check_resolver_bins + if "$do_display_only"; then prettyprint_local "$PATTERN2SHOW"