Skip to content

Commit d9037ea

Browse files
committed
Merge branch 'ah/fix-http-push'
An ancient rewrite passed a wrong pointer to a curl library function in a rarely used code path. * ah/fix-http-push: http-push.c: make CURLOPT_IOCTLDATA a usable pointer
2 parents 1fc8345 + 479eaa8 commit d9037ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static void curl_setup_http(CURL *curl, const char *url,
199199
curl_easy_setopt(curl, CURLOPT_READFUNCTION, fread_buffer);
200200
#ifndef NO_CURL_IOCTL
201201
curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctl_buffer);
202-
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &buffer);
202+
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, buffer);
203203
#endif
204204
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn);
205205
curl_easy_setopt(curl, CURLOPT_NOBODY, 0);

0 commit comments

Comments
 (0)