mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
pathd: Fix unlock of non-locked mutex
We have several instances of a non-locked mutex being unlocked in path_zebra_router_id_update. Clean this up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
a7f52fb0f7
commit
fc7d07275e
@ -153,12 +153,10 @@ static int path_zebra_router_id_update(ZAPI_CALLBACK_ARGS)
|
||||
pthread_mutex_unlock(&g_router_id_v6_mtx);
|
||||
family = "IPv6";
|
||||
} else {
|
||||
pthread_mutex_unlock(&g_router_id_v4_mtx);
|
||||
zlog_warn("Unexpected router ID address family for vrf %u: %u",
|
||||
vrf_id, pref.family);
|
||||
return 0;
|
||||
}
|
||||
pthread_mutex_unlock(&g_router_id_v4_mtx);
|
||||
zlog_info("%s Router Id updated for VRF %u: %s", family, vrf_id, buf);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user