From bcd44536a8de833ec19ef88f5cbd08039cf3ec48 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 10 Apr 2011 02:29:35 +0000 Subject: [PATCH] stack SOCKS5 UDP header buffer needs to fit at least 22 bytes --- src/udp_socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udp_socket.cpp b/src/udp_socket.cpp index 95fd904fa..1c0267e1e 100644 --- a/src/udp_socket.cpp +++ b/src/udp_socket.cpp @@ -418,7 +418,7 @@ void udp_socket::wrap(udp::endpoint const& ep, char const* p, int len, error_cod CHECK_MAGIC; using namespace libtorrent::detail; - char header[20]; + char header[25]; char* h = header; write_uint16(0, h); // reserved