kernel_accel: Cope with receiving freed sessions

This commit is contained in:
Samuel Thibault 2025-03-30 18:39:17 +02:00
parent 8b3ccb2ac5
commit ebb8784ec3

View file

@ -1391,6 +1391,9 @@ static void set_kernel_accel(sessionidt s, int set, int now)
if (set) if (set)
{ {
if (t == T_FREE)
/* This is a session that got freed */
return;
if (tunnel[t].state == TUNNELUNDEF) if (tunnel[t].state == TUNNELUNDEF)
/* We don't know the tunnel yet */ /* We don't know the tunnel yet */
return; return;