use shared_ptr for outbound tunnel build messages

This commit is contained in:
orignal 2015-06-17 12:26:07 -04:00
parent a7cd16c159
commit 98c91a01e3

View File

@ -83,7 +83,7 @@ namespace tunnel
if (outboundTunnel)
outboundTunnel->SendTunnelDataMsg (GetNextIdentHash (), 0, msg);
else
i2p::transport::transports.SendMessage (GetNextIdentHash (), msg);
i2p::transport::transports.SendMessage (GetNextIdentHash (), ToSharedI2NPMessage (msg));
}
bool Tunnel::HandleTunnelBuildResponse (uint8_t * msg, size_t len)