diff options
| -rw-r--r-- | vrrpd/vrrp.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index e1bb40c28d..c3ab1abbd6 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -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;  | 
