unetmsg: fix inverted condition in network_rx_socket_close()
authorFelix Fietkau <nbd@nbd.name>
Fri, 6 Feb 2026 09:30:26 +0000 (09:30 +0000)
committerFelix Fietkau <nbd@nbd.name>
Sat, 7 Feb 2026 09:04:17 +0000 (10:04 +0100)
commitf09596f84f3572d963e1c893762fd105b4ceee2e
treeaa38fa43a59c6302921a4a844d1434420261261d
parent3efcf444a11e9402d86ae79c733114827ce31b42
unetmsg: fix inverted condition in network_rx_socket_close()

The cleanup condition checked != instead of ==, inverting the logic.
This caused two problems:

When an authenticated RX connection disconnected, remote state for that
host was never cleaned up since the stored entry matched the one being
closed.

When a stale unauthenticated connection from a peer closed, any existing
authenticated connection from the same peer was incorrectly deleted and
its remote state wiped.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc