scope in PTLS_OPENSSL_HAVE_ASYNC
@@ -1722,9 +1722,11 @@ Redo:
case ASYNC_RESUMPTION_STATE_REQUEST_SENT: {
/* sent async request, reset the ssl state, and wait for async response */
assert(ret < 0);
+#ifdef PTLS_OPENSSL_HAVE_ASYNC
if (SSL_waiting_for_async(sock->ssl->ossl)) {
goto Redo;
}
+#endif
SSL_free(sock->ssl->ossl);
create_ossl(sock);
if (has_pending_ssl_bytes(sock->ssl))
