X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fconnection.c;h=3056aa79a9a34f24fd87d3ebb9e16c9e859267de;hb=5762d79fbaaf5d9bf1da054ad8a2cfb9075b4ebf;hp=7a6c0825a214ea456ae33f332c6da634d86c5771;hpb=da3b5fdb4d8c70bea3bc4d2a9b5e4eab737864eb;p=tlsproxy%2Ftlsproxy.git diff --git a/src/connection.c b/src/connection.c index 7a6c082..3056aa7 100644 --- a/src/connection.c +++ b/src/connection.c @@ -138,7 +138,7 @@ void handle_connection(int client_socket) { send_bad_request(client_fd_write); goto out; } else if (result == -3) { - LOG(DEBUG1, "read_http_request(): proxy authentication failed"); + LOG(WARNING, "read_http_request(): proxy authentication failed"); send_authentication_required(client_fd_write); goto out; } @@ -192,7 +192,7 @@ void handle_connection(int client_socket) { /* Check response of proxy server. */ if (strncmp(buffer, "HTTP/1.0 200", 12)) { - LOG(WARNING, "bad proxy response: %s", buffer); + LOG(WARNING, "bad proxy response: >%s<", buffer); send_forwarding_failure(client_fd_write); goto out; } @@ -337,8 +337,6 @@ out: } if (client_session_init) { gnutls_deinit(client_session); - gnutls_certificate_free_cas(client_x509_cred); - gnutls_certificate_free_keys(client_x509_cred); gnutls_certificate_free_credentials(client_x509_cred); }