You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix use-after-free on next_sub in broker fan-out loops
Both subscription fan-out loops snapshot next_sub before a write that can drive a re-entrant WebSocket close. That close runs BrokerSubs_RemoveClient and frees the subscriber's sub nodes, while pending_remove only defers the client struct, so next_sub itself can be freed. Revalidate it against broker->subs after the write, like MqttBroker_Step does for the client list.
0 commit comments