avoid conversion operation on output Address parameter; a generic Address object may have been passed in
This commit is contained in:
@@ -469,7 +469,7 @@ int
|
||||
PacketSocket::GetSockName (Address &address) const
|
||||
{
|
||||
NS_LOG_FUNCTION (this << address);
|
||||
PacketSocketAddress ad = PacketSocketAddress::ConvertFrom (address);
|
||||
PacketSocketAddress ad;
|
||||
|
||||
ad.SetProtocol (m_protocol);
|
||||
if (m_isSingleDevice)
|
||||
|
||||
Reference in New Issue
Block a user