From 4ed5e44de72147e220504adcf93b5d9b370adf0b Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 27 Oct 2022 15:22:24 -0400 Subject: [PATCH] correct buffer size for ipv6 SOCKS proxy reply --- libi2pd/NTCP2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/NTCP2.cpp b/libi2pd/NTCP2.cpp index 76c40d27..50cef15a 100644 --- a/libi2pd/NTCP2.cpp +++ b/libi2pd/NTCP2.cpp @@ -1708,7 +1708,7 @@ namespace transport } }); - boost::asio::async_read(conn->GetSocket(), boost::asio::buffer(readbuff->data (), 10), + boost::asio::async_read(conn->GetSocket(), boost::asio::buffer(readbuff->data (), sz), [timer, conn, sz, readbuff](const boost::system::error_code & e, std::size_t transferred) { if(e)