Fix server crash when control client session is destroyed, from Renaud

Allard in GitHub issue 4916.
This commit is contained in:
nicm
2026-03-09 14:33:55 +00:00
parent 8899c751e5
commit 881bec958e

View File

@@ -1046,6 +1046,9 @@ control_check_subs_timer(__unused int fd, __unused short events, void *data)
log_debug("%s: timer fired", __func__);
evtimer_add(&cs->subs_timer, &tv);
if (s == NULL)
return;
/* Find which subscription types are present. */
RB_FOREACH(csub, control_subs, &cs->subs) {
switch (csub->type) {