Fix no-tls1_2

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6634)
This commit is contained in:
Matt Caswell 2018-07-03 13:36:31 +01:00
parent a9f3f1ccbb
commit a97d19f7ce

View File

@ -5097,11 +5097,11 @@ static int test_shutdown(int tst)
size_t written, readbytes;
#ifdef OPENSSL_NO_TLS1_2
if (tst == 0)
if (tst <= 1)
return 1;
#endif
#ifdef OPENSSL_NO_TLS1_3
if (tst != 0)
if (tst >= 2)
return 1;
#endif