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

Lehel Bernadt's fix to prevent debug message to get sent on errors when

debug wasn't enabled
parent 0ff1ca30
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ void Curl_failf(struct SessionHandle *data, const char *fmt, ...)
    vsnprintf(data->set.errorbuffer, CURL_ERROR_SIZE, fmt, ap);
    data->state.errorbuf = TRUE; /* wrote error string */

    if(data->set.verbose)
      Curl_debug(data, CURLINFO_TEXT, data->set.errorbuffer,
                 strlen(data->set.errorbuffer));
  }