1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-08 22:57:52 +00:00

fixed crash

This commit is contained in:
orignal 2014-08-11 19:08:18 -04:00
parent e866243097
commit 2f8274a7b3

View File

@ -418,7 +418,7 @@ namespace garlic
{
case eGarlicDeliveryTypeLocal:
LogPrint ("Garlic type local");
i2p::HandleI2NPMessage (CreateI2NPMessage (buf, len));
i2p::HandleI2NPMessage (CreateI2NPMessage (buf, GetI2NPMessageLength (buf)));
break;
case eGarlicDeliveryTypeDestination:
{
@ -445,7 +445,7 @@ namespace garlic
auto tunnel = i2p::tunnel::tunnels.GetNextOutboundTunnel ();
if (tunnel) // we have send it through an outbound tunnel
{
I2NPMessage * msg = CreateI2NPMessage (buf, len - 36);
I2NPMessage * msg = CreateI2NPMessage (buf, GetI2NPMessageLength (buf));
tunnel->SendTunnelDataMsg (gwHash, gwTunnel, msg);
}
else