Skip to content

Commit b218b29

Browse files
committed
Fix from review
1 parent af53696 commit b218b29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/api/test_tls.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,8 @@ int test_tls12_etm_failed_resumption(void)
791791
* still findable via the cache. Disable lookups on this server SSL
792792
* directly so that HandleTlsResumption hits its "session lookup failed"
793793
* path — exactly the scenario the bug fix targets. */
794-
ssl_s->options.sessionCacheOff = 1;
794+
if (ssl_s != NULL)
795+
ssl_s->options.sessionCacheOff = 1;
795796
ExpectIntEQ(wolfSSL_NoTicketTLSv12(ssl_c), WOLFSSL_SUCCESS);
796797
ExpectIntEQ(wolfSSL_NoTicketTLSv12(ssl_s), WOLFSSL_SUCCESS);
797798
ExpectIntEQ(wolfSSL_set_cipher_list(ssl_c, cbcSuite), WOLFSSL_SUCCESS);

0 commit comments

Comments
 (0)