diff --git a/port/posix/posix_transport_tls.c b/port/posix/posix_transport_tls.c index 53199556e..956c429db 100644 --- a/port/posix/posix_transport_tls.c +++ b/port/posix/posix_transport_tls.c @@ -136,6 +136,9 @@ int posixTransportTls_InitConnect(void* context, const void* config, memset(ctx, 0, sizeof(posixTransportTlsClientContext)); + ctx->connectcb = connectcb; + ctx->connectcb_arg = connectcb_arg; + /* Create SSL context using static memory if heap_hint is provided */ #ifdef WOLFSSL_STATIC_MEMORY if (cfg->heap_hint != NULL) {