summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/segment_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c
index c8d4be5c113..7f7fa6d631a 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -342,7 +342,7 @@ segment_manager_init (segment_manager_t * sm, u32 first_seg_size,
else
{
seg_index = segment_manager_add_segment (sm, first_seg_size);
- if (seg_index)
+ if (seg_index < 0)
{
clib_warning ("Failed to allocate segment");
return seg_index;