stack SOCKS5 UDP header buffer needs to fit at least 22 bytes

This commit is contained in:
Arvid Norberg 2011-04-10 02:29:35 +00:00
parent cb3371dd7f
commit bcd44536a8
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ void udp_socket::wrap(udp::endpoint const& ep, char const* p, int len, error_cod
CHECK_MAGIC; CHECK_MAGIC;
using namespace libtorrent::detail; using namespace libtorrent::detail;
char header[20]; char header[25];
char* h = header; char* h = header;
write_uint16(0, h); // reserved write_uint16(0, h); // reserved