Fix 80-test_ssl_old.t: only count the ciphers if there are any.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3014)
This commit is contained in:
Richard Levitte 2017-03-22 11:06:20 +01:00
parent a2bb183623
commit e8763c6974

View file

@ -434,8 +434,8 @@ sub testssl {
if ($ciphersstatus) {
$ciphersuites{$protocol} = [ map { s|\R||; split(/:/, $_) }
@ciphers ];
$protocolciphersuitecount += scalar @{$ciphersuites{$protocol}};
}
$protocolciphersuitecount += scalar @{$ciphersuites{$protocol}};
}
plan skip_all => "None of the ciphersuites to test are available in this OpenSSL build"