From fc7d07275e41ed49580872d80dd2a96fb73e0679 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 4 Jan 2021 07:54:06 -0500 Subject: [PATCH] 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 --- pathd/path_zebra.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/pathd/path_zebra.c b/pathd/path_zebra.c index f0a22e4392..276bc9289c 100644 --- a/pathd/path_zebra.c +++ b/pathd/path_zebra.c @@ -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; }