aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2019-12-03 10:51:23 -0600
committerOle Trøan <otroan@employees.org>2019-12-04 07:40:39 +0000
commita90b26c1ee5bc4410c2753b6683a2e50e275daf6 (patch)
tree8da55fbf586bcd5ca27d8f8fc460de0d81f1daf4 /src/vnet
parentb3174dfe8f62168d9f279ef1267b876e2b35d807 (diff)
ip6: Fix improper MCAST adj test in IPv6 router solicitation
Type: fix Fixes: cb9cadad578297ffd78fa8a33670bdf1ab669e7e Change-Id: Id6de9780da41db5d762fe042f533cfaf21ed7b73 Reported-by: Rajith PR <rajith@rtbrick.com> Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ip/ip6_neighbor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c
index 363be4e42d2..5b8085d556d 100644
--- a/src/vnet/ip/ip6_neighbor.c
+++ b/src/vnet/ip/ip6_neighbor.c
@@ -1865,7 +1865,7 @@ icmp6_router_solicitation (vlib_main_t * vm,
else
{
adj_index0 = radv_info->mcast_adj_index;
- if (adj_index0 == 0)
+ if (adj_index0 == ADJ_INDEX_INVALID)
error0 = ICMP6_ERROR_DST_LOOKUP_MISS;
else
{