Check `so_state' in rtm_senddesync() and return if SS_ISCONNECTED or
authormvs <mvs@openbsd.org>
Tue, 1 Jun 2021 14:23:34 +0000 (14:23 +0000)
committermvs <mvs@openbsd.org>
Tue, 1 Jun 2021 14:23:34 +0000 (14:23 +0000)
commit66f5a49c8620014298782faf7d23772bab534297
tree442231decec7f429fc3c9bc39f7194dff0ee1209
parent1c08d21914f1db5c0ee1a58792151d325f8705d4
Check `so_state' in rtm_senddesync() and return if SS_ISCONNECTED or
SS_CANTRCVMORE bits are set.

The first check required to prevent timeout_add(9) reschedule
`rop_timeout', otherwise timeout_del_barrier(9) can't help us.

The second check is for the case when shutdown(2) with SHUT_RD argument
occurred on this socket and we should not receive anything include
RTM_DESYNC packets.

ok claudio@
sys/net/rtsock.c