From 44478e378d527bb51fc3a3e8d9d46ebe41d97f4d Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 4 Jun 2008 10:47:34 -0700 Subject: [PATCH] bug 209: remove buggy test for open state in PacketSocket::SendTo --- src/node/packet-socket.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/node/packet-socket.cc b/src/node/packet-socket.cc index c4b60bb69..77a5ed625 100644 --- a/src/node/packet-socket.cc +++ b/src/node/packet-socket.cc @@ -259,13 +259,6 @@ PacketSocket::SendTo(Ptr 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");