From 2a9668c000a0ab632b04ded42927b0ad8ac14015 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Mon, 12 Dec 2016 09:38:20 -0500 Subject: [PATCH] Updated based on @typingArtist's suggesting --- testssl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index e45fb88..f6f385c 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6514,9 +6514,9 @@ parse_sslv2_serverhello() { fi fi - [[ "$2" == "true" ]] && [[ -e $HOSTCERT ]] && rm $HOSTCERT - [[ "$2" == "true" ]] && [[ -e $TEMPDIR/intermediatecerts.pem ]] && rm $TEMPDIR/intermediatecerts.pem - if [[ "$2" == "true" ]] && [[ $ret -eq 3 ]]; then + [[ "$2" == "true" ]] || return $ret + rm -f $HOSTCERT $TEMPDIR/intermediatecerts.pem + if [[ $ret -eq 3 ]]; then certificate_len=2*$(hex2dec "$v2_hello_cert_length") if [[ "$v2_cert_type" == "01" ]] && [[ "$v2_hello_cert_length" != "00" ]]; then