Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -154,8 +154,9 @@ 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 */
Curl_debug(data, CURLINFO_TEXT, data->set.errorbuffer,
strlen(data->set.errorbuffer));
if(data->set.verbose)
Curl_debug(data, CURLINFO_TEXT, data->set.errorbuffer,
strlen(data->set.errorbuffer));
}
va_end(ap);
}
......
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