1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

the debug callback was called with CURLINFO_TEXT with the data size one

too big
This commit is contained in:
Daniel Stenberg 2005-08-10 22:57:14 +00:00
parent bb2317b63c
commit 20b17d6b04

View File

@ -1098,8 +1098,8 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type,
msg_type = *(char*)buf; msg_type = *(char*)buf;
msg_name = ssl_msg_type(ssl_ver, msg_type); msg_name = ssl_msg_type(ssl_ver, msg_type);
txt_len = 1 + snprintf(ssl_buf, sizeof(ssl_buf), "SSLv%c, %s%s (%d):\n", txt_len = snprintf(ssl_buf, sizeof(ssl_buf), "SSLv%c, %s%s (%d):\n",
ver, tls_rt_name, msg_name, msg_type); ver, tls_rt_name, msg_name, msg_type);
Curl_debug(data, CURLINFO_TEXT, ssl_buf, txt_len, NULL); Curl_debug(data, CURLINFO_TEXT, ssl_buf, txt_len, NULL);
Curl_debug(data, (direction == 1) ? CURLINFO_SSL_DATA_OUT : Curl_debug(data, (direction == 1) ? CURLINFO_SSL_DATA_OUT :