2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-05 07:23:42 +01:00

Cleanup old temp files when a connection failed

This commit is contained in:
Simon Deziel 2014-01-07 18:32:09 -05:00
parent af7b4ce18c
commit 93ee5e3f33

View File

@ -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