1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.

This commit is contained in:
Daniel Stenberg 2002-03-13 13:10:52 +00:00
parent bc9705f758
commit e1bae4fc7e

View File

@ -752,7 +752,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
* Progress callback function
*/
data->set.fprogress = va_arg(param, curl_progress_callback);
if(data->set.fprogress)
data->progress.callback = TRUE; /* no longer internal */
else
data->progress.callback = FALSE; /* NULL enforces internal */
break;
case CURLOPT_PROGRESSDATA:
/*