Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d7d6e97
)
Fix broken ASSERT
30/17830/1
author
Dave Barach
<dave@barachs.net>
Mon, 25 Feb 2019 21:48:57 +0000
(16:48 -0500)
committer
Dave Barach
<dave@barachs.net>
Mon, 25 Feb 2019 21:49:27 +0000
(16:49 -0500)
Fix "make TEST=test_vcl test-debug" ASSERT failures.
Change-Id: I58a67b12806660973c8def0e598ef0c5b296eec5
Signed-off-by: Dave Barach <dave@barachs.net>
src/vnet/session/session_types.h
patch
|
blob
|
history
diff --git
a/src/vnet/session/session_types.h
b/src/vnet/session/session_types.h
index
97c915b
..
a7e33a6
100644
(file)
--- a/
src/vnet/session/session_types.h
+++ b/
src/vnet/session/session_types.h
@@
-368,7
+368,8
@@
local_session_parse_handle (session_handle_t handle, u32 * app_or_wrk_index,
u32 * session_index)
{
u32 bottom;
- ASSERT ((handle >> 32) == SESSION_LOCAL_HANDLE_PREFIX);
+ ASSERT (((handle >> 32) == SESSION_LOCAL_HANDLE_PREFIX)
+ || ((handle >> 32) == SESSION_LISTENER_PREFIX));
bottom = (handle & 0xFFFFFFFF);
local_session_parse_id (bottom, app_or_wrk_index, session_index);
}