]> git.puffer.fish Git - mirror/frr.git/commitdiff
vrrpd: fix bug in v6 autoconfiguration
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 12 Feb 2019 20:41:43 +0000 (20:41 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
Typo caused the IPv4 VRRP router to be shutdown instead of the IPv6 one,
and sometimes a crash.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vrrpd/vrrp.c

index 85b8435a77222ebc7339d52f48f7448086a68b02..7e8ce50c13dd662877d494996cdcd6ac1170990b 100644 (file)
@@ -1369,7 +1369,7 @@ static void vrrp_autoconfig_autoaddrupdate(struct vrrp_vrouter *vr)
                       VRRP_LOGPFX VRRP_LOGPFX_VRID
                       "IPv6 Virtual IP list is empty; shutting down",
                       vr->vrid);
-               vrrp_event(vr->v4, VRRP_EVENT_SHUTDOWN);
+               vrrp_event(vr->v6, VRRP_EVENT_SHUTDOWN);
        }
 }