bug 209: remove buggy test for open state in PacketSocket::SendTo
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed Jun 04 10:47:34 2008 -0700 (20 months ago)
changeset 3218503c67d93dab
parent 3217 9a72c241348e
child 3219 49dcb3f0bd34
bug 209: remove buggy test for open state in PacketSocket::SendTo
src/node/packet-socket.cc
     1.1 --- a/src/node/packet-socket.cc	Wed Jun 04 10:39:36 2008 -0700
     1.2 +++ b/src/node/packet-socket.cc	Wed Jun 04 10:47:34 2008 -0700
     1.3 @@ -259,13 +259,6 @@
     1.4        m_errno = ERROR_BADF;
     1.5        return -1;
     1.6      }
     1.7 -  if (m_state == STATE_OPEN)
     1.8 -    {
     1.9 -      // XXX should return another error here.
    1.10 -      NS_LOG_LOGIC ("ERROR_INVAL");
    1.11 -      m_errno = ERROR_INVAL;
    1.12 -      return -1;
    1.13 -    }
    1.14    if (m_shutdownSend)
    1.15      {
    1.16        NS_LOG_LOGIC ("ERROR_SHUTDOWN");