Skip to content

wssl_init does not compile anymore in 8.18.0 without USE_BIO_CHAIN #20250

@Megamouse

Description

@Megamouse

I did this

Commit 5bd670c - wolfssl: avoid NULL dereference in OOM situation

assigns ret = wssl_bio_cf_init_methods() in wssl_init.

But the default for wssl_bio_cf_init_methods is Curl_nop_stmt, which is #define Curl_nop_stmt do {} while(0)

This does not compile anymore in wssl_init if USE_BIO_CHAIN is undefined, since it tries to assign a "do while nop" to int.

curl\lib\vtls\wolfssl.c(2084,11): error C2059: syntax error: 'do'

I expected the following

curl should continue to compile without USE_BIO_CHAIN

curl/libcurl version

curl 8.18.0

operating system

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions