]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
src/connection.c: Correctly log suggested buffer size.
authorSimon Ruderich <simon@ruderich.org>
Sat, 17 Sep 2011 19:30:17 +0000 (21:30 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 17 Sep 2011 19:30:17 +0000 (21:30 +0200)
src/connection.c

index 42b8ac36b384b0417ddf00687ca5373b48ff15f7..f15f4c15c2380bf19bf8e46ca1b1a297c3fdee73 100644 (file)
@@ -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 */);