Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: Replace Sematics for Interface IP addresses
[vpp.git]
/
src
/
plugins
/
gbp
/
gbp_endpoint_group.c
diff --git
a/src/plugins/gbp/gbp_endpoint_group.c
b/src/plugins/gbp/gbp_endpoint_group.c
index
19c05f9
..
92bad37
100644
(file)
--- a/
src/plugins/gbp/gbp_endpoint_group.c
+++ b/
src/plugins/gbp/gbp_endpoint_group.c
@@
-52,11
+52,14
@@
gbp_endpoint_group_get (index_t i)
}
void
}
void
-gbp_endpoint_group_lock (index_t i)
+gbp_endpoint_group_lock (index_t
gg
i)
{
gbp_endpoint_group_t *gg;
{
gbp_endpoint_group_t *gg;
- gg = gbp_endpoint_group_get (i);
+ if (INDEX_INVALID == ggi)
+ return;
+
+ gg = gbp_endpoint_group_get (ggi);
gg->gg_locks++;
}
gg->gg_locks++;
}