From 06fd6cb015c4afa125498c6c01c0119d9e989bed Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Sun, 1 Nov 2015 20:17:40 +0000 Subject: If fail to remove vmac i/f, don't report success after fail message Signed-off-by: Quentin Armitage (cherry picked from commit ef90067f3d6ac5f2efe341b04dd59a04f0911e7f) --- keepalived/vrrp/vrrp_vmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepalived/vrrp/vrrp_vmac.c b/keepalived/vrrp/vrrp_vmac.c index ebf15d6..1b8fa38 100644 --- a/keepalived/vrrp/vrrp_vmac.c +++ b/keepalived/vrrp/vrrp_vmac.c @@ -226,7 +226,7 @@ netlink_link_del_vmac(vrrp_t *vrrp) if (netlink_talk(&nl_cmd, &req.n) < 0) { log_message(LOG_INFO, "vmac: Error removing VMAC interface %s for vrrp_instance %s!!!" , vrrp->vmac_ifname, vrrp->iname); - status = -1; + return -1; } log_message(LOG_INFO, "vmac: Success removing VMAC interface %s for vrrp_instance %s" -- 1.7.12.1