From 5ae22272d1506e5c0e431f4ad60f1dc446f76715 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 Jun 2018 00:10:43 +0200 Subject: Curl_debug: remove dead printhost code The struct field is never set (since 5e0d9aea3) so remove the use of it and remove the connectdata pointer from the prototype. Reported-by: Tejas Bug: https://curl.haxx.se/mail/lib-2018-06/0054.html Closes #2647 --- lib/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/security.c') diff --git a/lib/security.c b/lib/security.c index 4039f4e41..abf242c38 100644 --- a/lib/security.c +++ b/lib/security.c @@ -390,7 +390,7 @@ int Curl_sec_read_msg(struct connectdata *conn, char *buffer, if(conn->data->set.verbose) { buf[decoded_len] = '\n'; - Curl_debug(conn->data, CURLINFO_HEADER_IN, buf, decoded_len + 1, conn); + Curl_debug(conn->data, CURLINFO_HEADER_IN, buf, decoded_len + 1); } buf[decoded_len] = '\0'; -- cgit v1.2.3