[PATCH 12/12] If fail to remove vmac i/f, don't report success after fail message
[email protected] (Quentin Armitage)
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Quentin Armitage <[email protected]> --- keepalived/vrrp/vrrp_vmac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/keepalived/vrrp/vrrp_vmac.c b/keepalived/vrrp/vrrp_vmac.c index e80135e..0648dfb 100644 --- a/keepalived/vrrp/vrrp_vmac.c +++ b/keepalived/vrrp/vrrp_vmac.c @@ -345,7 +345,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.7.6 ------------------------------------------------------------------------------