fib: Refetech the adj after the walk in case the pool realloc'd 10/34810/2
authorNeale Ranns <neale@graphiant.com>
Fri, 31 Dec 2021 09:18:31 +0000 (09:18 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 31 Dec 2021 17:49:42 +0000 (17:49 +0000)
Type: fix

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I8734c72cf15533d6614fbeb53b95c824dbd251a9

src/vnet/adj/adj_nbr.c

index 293bade..d289bb6 100644 (file)
@@ -600,7 +600,7 @@ adj_nbr_update_rewrite_internal (ip_adjacency_t *adj,
         walk_adj->ia_flags &= ~ADJ_FLAG_SYNC_WALK_ACTIVE;
     }
 
-    adj_delegate_adj_modified(adj);
+    adj_delegate_adj_modified(adj_get(ai));
     adj_unlock(ai);
     adj_unlock(walk_ai);
 }