From: Simon Ruderich Date: Sat, 17 Sep 2011 19:30:17 +0000 (+0200) Subject: src/connection.c: Correctly log suggested buffer size. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=dc3567be34b6438f6cb29490fa404dce5dd6efc3;p=tlsproxy%2Ftlsproxy.git src/connection.c: Correctly log suggested buffer size. --- diff --git a/src/connection.c b/src/connection.c index 42b8ac3..f15f4c1 100644 --- a/src/connection.c +++ b/src/connection.c @@ -670,11 +670,11 @@ static void transfer_data_tls(int client, int server, /* Get maximum possible buffer size. */ buffer_size = gnutls_record_get_max_size(client_session); - LOG(LOG_DEBUG, "transfer_data_tls(): suggested buffer size: %ld", - (long int)buffer_size); if (buffer_size > gnutls_record_get_max_size(server_session)) { buffer_size = gnutls_record_get_max_size(server_session); } + LOG(LOG_DEBUG, "transfer_data_tls(): suggested buffer size: %ld", + (long int)buffer_size); for (;;) { int result = poll(fds, 2, -1 /* no timeout */);