Skip to content
Snippets Groups Projects
Commit e1bae4fc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.

parent bc9705f7
No related branches found
No related tags found
No related merge requests found
......@@ -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:
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment