diff --git a/testssl.sh b/testssl.sh index d6cd902..4dcc4bc 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6682,7 +6682,7 @@ run_server_preference() { fi fi fi - default_proto=$(get_protocol $TMPFILE) + [[ $ret -eq 0 ]] && default_proto=$(get_protocol $TMPFILE) [[ "$default_proto" == TLSv1.0 ]] && default_proto="TLSv1" # debugme tm_out " --> $default_proto\n"