summaryrefslogtreecommitdiff
path: root/lib/krb5.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-11-02 17:34:04 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-02 22:49:36 +0100
commitd70a5b5a0f5e36781a39e2c955139c81d41355c1 (patch)
tree54bb308146bdbd9e8da1fd228b8757967ac8014e /lib/krb5.c
parent606d213766fb94a4653ec41ef3b91cc0a96b9570 (diff)
downloadcurl-d70a5b5a0f5e36781a39e2c955139c81d41355c1.tar.gz
sendf: move the verbose-check into Curl_debug
Saves us from having the same check done everywhere. Closes #6159
Diffstat (limited to 'lib/krb5.c')
-rw-r--r--lib/krb5.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index ad6daeaa9..66394f4f3 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -99,8 +99,7 @@ static CURLcode ftpsend(struct connectdata *conn, const char *cmd)
if(result)
break;
- if(conn->data->set.verbose)
- Curl_debug(conn->data, CURLINFO_HEADER_OUT, sptr, (size_t)bytes_written);
+ Curl_debug(conn->data, CURLINFO_HEADER_OUT, sptr, (size_t)bytes_written);
if(bytes_written != (ssize_t)write_len) {
write_len -= bytes_written;
@@ -716,7 +715,7 @@ int Curl_sec_read_msg(struct connectdata *conn, char *buffer,
return -1;
}
- if(conn->data->set.verbose) {
+ {
buf[decoded_len] = '\n';
Curl_debug(conn->data, CURLINFO_HEADER_IN, buf, decoded_len + 1);
}