kernel_accel: Cope with receiving freed sessions
This commit is contained in:
parent
8b3ccb2ac5
commit
ebb8784ec3
1 changed files with 3 additions and 0 deletions
3
l2tpns.c
3
l2tpns.c
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue