curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: libcurl 7.81.0 via homebrew on macOS clean up issues

From: Daniel Stenberg via curl-library <>
Date: Mon, 17 Jan 2022 22:52:58 +0100 (CET)

On Mon, 17 Jan 2022, Gavin Henry via curl-library wrote:


Line 60 sets your write callback with CURLOPT_WRITEFUNCTION but you don't set
CURLOPT_WRITEDATA for the handle, so your callback will get the default
callback argument (a FILE * that is stdout).

Then in the callback you seem to expect that 'userp' points to a json_t struct
or something and from that point things will not be good.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2022-01-17