From: Daniel Stenberg Date: Wed, 13 Mar 2002 13:10:52 +0000 (+0000) Subject: Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function. X-Git-Tag: curl-7_9_6~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1bae4fc7e3c565ea4ccd8a61b68f2f68c9a931d;p=curl Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function. --- diff --git a/lib/url.c b/lib/url.c index e42ce9aed..cd1854328 100644 --- a/lib/url.c +++ b/lib/url.c @@ -752,7 +752,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) * Progress callback function */ data->set.fprogress = va_arg(param, curl_progress_callback); - data->progress.callback = TRUE; /* no longer internal */ + if(data->set.fprogress) + data->progress.callback = TRUE; /* no longer internal */ + else + data->progress.callback = FALSE; /* NULL enforces internal */ + break; case CURLOPT_PROGRESSDATA: /*