From 33458dcf31cb06ea216c1672381100e1d6640903 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 8 Apr 2010 21:18:42 +0200 Subject: Make use of counter_type instead of int when counting bytes and network packets This is in response to a reported Debian bug, where the connection counter overflows. Signed-off-by: David Sommerseth Acked-by: Gert Doering --- ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ssl.c') diff --git a/ssl.c b/ssl.c index 1b275af..ddd5ee7 100644 --- a/ssl.c +++ b/ssl.c @@ -3747,7 +3747,8 @@ tls_process (struct tls_multi *multi, && ks->n_packets >= session->opt->renegotiate_packets) || (packet_id_close_to_wrapping (&ks->packet_id.send)))) { - msg (D_TLS_DEBUG_LOW, "TLS: soft reset sec=%d bytes=%d/%d pkts=%d/%d", + msg (D_TLS_DEBUG_LOW, + "TLS: soft reset sec=%d bytes=" counter_format "/%d pkts=" counter_format "/%d", (int)(ks->established + session->opt->renegotiate_seconds - now), ks->n_bytes, session->opt->renegotiate_bytes, ks->n_packets, session->opt->renegotiate_packets); -- cgit v1.2.3