aboutsummaryrefslogtreecommitdiff
path: root/ssl.h
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-04-08 21:18:42 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-04-29 20:22:29 +0200
commit6484c6299cf298107316e649733ab4bd253dbc08 (patch)
tree23cd4652e8e8c663b3214a77b555b84cacf6c22c /ssl.h
parentWhen I began testing OpenVPN v2.1_rc9 I was having trouble authenticating to ... (diff)
downloadopenvpn-6484c6299cf298107316e649733ab4bd253dbc08.tar.xz
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. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576827> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to '')
-rw-r--r--ssl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl.h b/ssl.h
index 8302402..e909c43 100644
--- a/ssl.h
+++ b/ssl.h
@@ -376,8 +376,8 @@ struct key_state
struct reliable *rec_reliable; /* order incoming ciphertext packets before we pass to TLS */
struct reliable_ack *rec_ack; /* buffers all packet IDs we want to ACK back to sender */
- int n_bytes; /* how many bytes sent/recvd since last key exchange */
- int n_packets; /* how many packets sent/recvd since last key exchange */
+ counter_type n_bytes; /* how many bytes sent/recvd since last key exchange */
+ counter_type n_packets; /* how many packets sent/recvd since last key exchange */
/*
* If bad username/password, TLS connection will come up but 'authenticated' will be false.