cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Password is written along with the error message.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 12 Mar 2004 08:03:38 +0100 (CET)

On Fri, 12 Mar 2004, Arun K Khandelwal wrote:

> I am using curl lib for ftp. When curl_easy_perform() function of curl
> lib fails it writes the error message along with the password to the error
> buffer "errorMsg". This error message buffer is set by curl lib function
> curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorMsg);
>
> I do not want to have password with this error mesage. Is there any way of
> doing this? Please note that when curl_easy_perform do not fails it does not
> write the password in errorMsg.

I completely understand you not wanting this. I don't think anyone does.

Can you be a little more specific in what failure you get when the password
ends up in the errormsg buffer? It surely doesn't get there for all possible
errors.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-12