Merge pull request #12803 from FRRouting/mergify/bp/dev/8.5/pr-12790

vrrpd: give null when using null ifp to lookup vr (backport #12790)
This commit is contained in:
Donald Sharp 2023-02-14 15:19:28 -05:00 committed by GitHub
commit 68c8001d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -671,6 +671,9 @@ void vrrp_vrouter_destroy(struct vrrp_vrouter *vr)
struct vrrp_vrouter *vrrp_lookup(const struct interface *ifp, uint8_t vrid)
{
if (!ifp)
return NULL;
struct vrrp_vrouter vr;
vr.vrid = vrid;