bug 209: remove buggy test for open state in PacketSocket::SendTo

This commit is contained in:
Mathieu Lacage
2008-06-04 10:47:34 -07:00
parent 1eb07aeaef
commit 44478e378d

View File

@@ -259,13 +259,6 @@ PacketSocket::SendTo(Ptr<Packet> p, const Address &address)
m_errno = ERROR_BADF;
return -1;
}
if (m_state == STATE_OPEN)
{
// XXX should return another error here.
NS_LOG_LOGIC ("ERROR_INVAL");
m_errno = ERROR_INVAL;
return -1;
}
if (m_shutdownSend)
{
NS_LOG_LOGIC ("ERROR_SHUTDOWN");