aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/adj/adj_nbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/adj/adj_nbr.c b/src/vnet/adj/adj_nbr.c
index ddaab14ee11..921588a7ef7 100644
--- a/src/vnet/adj/adj_nbr.c
+++ b/src/vnet/adj/adj_nbr.c
@@ -39,7 +39,7 @@ typedef struct adj_nbr_key_t_
#define ADJ_NBR_ITF_OK(_proto, _itf) \
(((_itf) < vec_len(adj_nbr_tables[_proto])) && \
- (NULL != adj_nbr_tables[_proto][sw_if_index]))
+ (NULL != adj_nbr_tables[_proto][(_itf)]))
#define ADJ_NBR_ASSERT_NH_PROTO(nh_proto, err) \
do { \