diff options
Diffstat (limited to 'src/vnet/ip-neighbor')
-rw-r--r-- | src/vnet/ip-neighbor/ip4_neighbor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip-neighbor/ip4_neighbor.c b/src/vnet/ip-neighbor/ip4_neighbor.c index 94848259b8c..9dda50ee911 100644 --- a/src/vnet/ip-neighbor/ip4_neighbor.c +++ b/src/vnet/ip-neighbor/ip4_neighbor.c @@ -79,8 +79,8 @@ ip4_neighbor_advertise (vlib_main_t * vm, if (NULL == addr) { - fib_sas4_get (sw_if_index, NULL, &tmp); - addr = &tmp; + if (fib_sas4_get (sw_if_index, NULL, &tmp)) + addr = &tmp; } if (addr) |