Commit e1bae4fc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.

parent bc9705f7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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:
    /*