forked from premiere/premiere-libtorrent
stack SOCKS5 UDP header buffer needs to fit at least 22 bytes
This commit is contained in:
parent
cb3371dd7f
commit
bcd44536a8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue