Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
ipsec: IPSec protection for multi-point tunnel interfaces
[vpp.git]
/
src
/
vnet
/
session
/
session.h
diff --git
a/src/vnet/session/session.h
b/src/vnet/session/session.h
index
7b7addb
..
346af54
100644
(file)
--- a/
src/vnet/session/session.h
+++ b/
src/vnet/session/session.h
@@
-598,7
+598,7
@@
session_main_get_worker (u32 thread_index)
static inline session_worker_t *
session_main_get_worker_if_valid (u32 thread_index)
{
- if (
pool_is_free_index (session_main.wrk, thread_index
))
+ if (
thread_index > vec_len (session_main.wrk
))
return 0;
return &session_main.wrk[thread_index];
}