cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is it safe to ask for a CURLOPT_PRIVATE if one wasn't input?

From: Tommie Gannert <tommie_at_spotify.com>
Date: Wed, 22 Dec 2010 12:41:18 +0100

Michael Menegakis wrote:
> As the title implies. Is it legal to ask for a CURLOPT_PRIVATE with
> curl_easy_getinfo if curl_easy_setopt didn't give it one?

CURLINFO_PRIVATE should be safe. The SessionHandle struct is allocated
with calloc(), and should thus be initialized correctly.

(Just to motivate what Daniel said.)

-- 
Tommie
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-22