aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-01-06 11:38:49 -0800
committerFlorin Coras <florin.coras@gmail.com>2023-01-06 20:48:15 +0000
commit227660b9969410f29d6b3d14eba16be5f57fbffe (patch)
treedc415d8a759632cc6a34dffb826f5a19726dd3bb /src/vnet
parentcfaf440202161f9cbe565c15f49a9fb877f639ce (diff)
session: avoid dgram dequeues with no transport
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I1a3393b579caeb5dc25b60bc1b4a71706fb07051
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/session_node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c
index 150da259da6..f819ee6847d 100644
--- a/src/vnet/session/session_node.c
+++ b/src/vnet/session/session_node.c
@@ -1163,6 +1163,11 @@ session_tx_not_ready (session_t * s, u8 peek_data)
return 2;
}
}
+ else
+ {
+ if (s->session_state == SESSION_STATE_TRANSPORT_DELETED)
+ return 2;
+ }
return 0;
}