Modify libssl to discover supported groups based on available providers
[oweals/openssl.git] / test / sslapitest.c
index 46655690546206dac01b71b340dae6dfce385f51..e8ecf1ce563607356e2c3b915bacdf6728818b17 100644 (file)
@@ -8039,6 +8039,8 @@ static int test_sigalgs_available(int idx)
 
     cctx = SSL_CTX_new_with_libctx(clientctx, NULL, TLS_client_method());
     sctx = SSL_CTX_new_with_libctx(serverctx, NULL, TLS_server_method());
+    if (!TEST_ptr(cctx) || !TEST_ptr(sctx))
+        goto end;
 
     if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
                                        TLS_client_method(),