summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/segment_manager.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-11-06 23:27:56 -0800
committerDave Wallace <dwallacelf@gmail.com>2017-11-07 15:27:52 +0000
commit4e4531e4b10883be8c320ff3b9acd4950135f5f0 (patch)
treef23912cc0605f59909e9648c481a3862d52921db /src/vnet/session/segment_manager.c
parent2e005bbbdf3ddf9da333b814bc4e94dd5911e82e (diff)
session: fix v6 double binds
Change-Id: Ie747b490901254e962cf61814491851b891129ee Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/segment_manager.c')
-rw-r--r--src/vnet/session/segment_manager.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c
index cb83d8e53bc..f5a40244400 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -217,6 +217,12 @@ segment_manager_app_detached (segment_manager_t * sm)
return (sm->app_index == SEGMENT_MANAGER_INVALID_APP_INDEX);
}
+void
+segment_manager_app_detach (segment_manager_t * sm)
+{
+ sm->app_index = SEGMENT_MANAGER_INVALID_APP_INDEX;
+}
+
static void
segment_manager_del_segment (segment_manager_t * sm, u32 segment_index)
{
@@ -325,6 +331,7 @@ segment_manager_del (segment_manager_t * sm)
void
segment_manager_init_del (segment_manager_t * sm)
{
+ segment_manager_app_detach (sm);
if (segment_manager_has_fifos (sm))
segment_manager_del_sessions (sm);
else