From 6d0e738254c75e61135ed841011cdd49d18635c0 Mon Sep 17 00:00:00 2001 From: Casey Williams Date: Fri, 25 Oct 2024 00:11:09 +0200 Subject: [PATCH] Pass address of ca blob to setopt --- src/Easy.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Easy.zig b/src/Easy.zig index bbb0cd2..bda2e98 100644 --- a/src/Easy.zig +++ b/src/Easy.zig @@ -465,7 +465,7 @@ pub fn setCommonOpts(self: Self) !void { .len = bundle.items.len, .flags = c.CURL_BLOB_NOCOPY, }; - try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_CAINFO_BLOB, blob)); + try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_CAINFO_BLOB, &blob)); } try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_TIMEOUT_MS, self.timeout_ms)); try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_USERAGENT, self.user_agent.ptr));