diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-03-13 13:10:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-03-13 13:10:52 +0000 |
commit | e1bae4fc7e3c565ea4ccd8a61b68f2f68c9a931d (patch) | |
tree | 80efcfa8caaba54c09a21524609f700d26ceda20 | |
parent | bc9705f7583c7ef6ed4fd0566ba45846606dc025 (diff) |
Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: /* |