From 93ee5e3f337f6150096edb6447f08df64b76b0c5 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 7 Jan 2014 18:32:09 -0500 Subject: [PATCH] Cleanup old temp files when a connection failed --- cipherscan | 1 + 1 file changed, 1 insertion(+) diff --git a/cipherscan b/cipherscan index 939581c..b4eb744 100755 --- a/cipherscan +++ b/cipherscan @@ -62,6 +62,7 @@ EOF current_protocol=$(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}') if [[ -z "$current_protocol" || "$current_cipher" == '(NONE)' ]]; then # connection failed, try again with next TLS version + rm "$tmp" continue fi # connection succeeded, add TLS version to positive results