Skip to content
  • Philip Withnall's avatar
    socket: Return early from socket functions if the socket is closed · b80bc3a1
    Philip Withnall authored
    Explicitly check whether the socket is closed (universally represented
    as sock->priv == NULL) before doing anything else in the socket methods.
    This should safely return from unusual situations where the socket has
    been closed and part-destroyed but still ends up having send() or recv()
    called on it.
    b80bc3a1