Fix 80-test_ssl_old.t: only count the ciphers if there are any.
authorRichard Levitte <levitte@openssl.org>
Wed, 22 Mar 2017 10:06:20 +0000 (11:06 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 22 Mar 2017 10:12:48 +0000 (11:12 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3014)

test/recipes/80-test_ssl_old.t

index 8b6f538eeb6cf822aa6df70dc9e3e7619217cfc3..501009384a8b28ab3508f0ce5276bccaceb45faa 100644 (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"