make sure dev is initialized correctly when binding to more than one interface.
This commit is contained in:
@@ -116,7 +116,7 @@ PacketSocket::DoBind (const PacketSocketAddress &address)
|
||||
}
|
||||
else
|
||||
{
|
||||
m_node->GetDevice (address.GetSingleDevice ());
|
||||
dev = m_node->GetDevice (address.GetSingleDevice ());
|
||||
}
|
||||
m_node->RegisterProtocolHandler (MakeCallback (&PacketSocket::ForwardUp, this),
|
||||
address.GetProtocol (), dev);
|
||||
|
||||
Reference in New Issue
Block a user