From 0a230d4b25e847f772c19d3136ba9756080ea5b9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 4 Oct 2013 03:49:04 +0000 Subject: [PATCH] fix utp counter initialization --- src/utp_socket_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utp_socket_manager.cpp b/src/utp_socket_manager.cpp index 8a2f6e347..ab1eeb67f 100644 --- a/src/utp_socket_manager.cpp +++ b/src/utp_socket_manager.cpp @@ -53,7 +53,9 @@ namespace libtorrent , m_last_route_update(min_time()) , m_last_if_update(min_time()) , m_sock_buf_size(0) - {} + { + memset(m_counters, 0, sizeof(m_counters)); + } utp_socket_manager::~utp_socket_manager() {