]> git.proxmox.com Git - mirror_frr.git/commitdiff
bfdd: fix multi hop hash lookup
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Sun, 14 Oct 2018 13:39:55 +0000 (15:39 +0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 22 Oct 2018 12:47:27 +0000 (14:47 +0200)
Use the proper multi hop hash for matching multi hop peers.

Spotted by Dmitrii Turlupov.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit 2055ea096923406e31a7d0a1a15406b3b62f2255)

bfdd/bfd.c

index b3253a14d75150a26a4ed1ace5f50218c390277f..66c781c2902a706b698d72a6c151867d33fa5f50 100644 (file)
@@ -1092,7 +1092,7 @@ struct bfd_session *bfd_mhop_lookup(struct bfd_mhop_key mhop)
 
        _mhop_key(&bs, &mhop);
 
-       return hash_lookup(bfd_shop_hash, &bs);
+       return hash_lookup(bfd_mhop_hash, &bs);
 }
 
 struct bfd_vrf *bfd_vrf_lookup(int vrf_id)