]> granicus.if.org Git - curl/commitdiff
Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.
authorDaniel Stenberg <daniel@haxx.se>
Wed, 13 Mar 2002 13:10:52 +0000 (13:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 13 Mar 2002 13:10:52 +0000 (13:10 +0000)
lib/url.c

index e42ce9aeda290dd375c0774a7108a32c9e48ad13..cd1854328dbdf8bf76ec5028a28c0fb0f1d4804f 100644 (file)
--- 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:
     /*