From 535c575e31eadf1710fa44be94094db9f9d34655 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 16 May 2026 03:56:33 +0200 Subject: [PATCH] lib678: fix to not be perma-skipped Prior to this patch the test was always skipped due to failing precheck with `CURLE_BAD_FUNCTION_ARGUMENT`, because of the zero-length blob passed to setopt. Fix by passing a non-zero long dummy blob as done in `mk-lib1521.pl`. Fixing: ``` test 0678 SKIPPED: CURLOPT_CAINFO_BLOB is not supported ``` Follow-up to 956e1ae84f2fec9f027b4ce80999744326b30992 #20705 Closes #21641 --- tests/libtest/lib678.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libtest/lib678.c b/tests/libtest/lib678.c index 73aa4ee7e9..7486505f76 100644 --- a/tests/libtest/lib678.c +++ b/tests/libtest/lib678.c @@ -97,7 +97,7 @@ static CURLcode test_lib678(const char *URL) curl_global_init(CURL_GLOBAL_DEFAULT); if(!strcmp("check", URL)) { CURLcode w = CURLE_OK; - struct curl_blob blob = { 0 }; + struct curl_blob blob = { CURL_UNCONST("silly"), 5, 0 }; CURL *curl = curl_easy_init(); if(curl) { w = curl_easy_setopt(curl, CURLOPT_CAINFO_BLOB, &blob);