summaryrefslogtreecommitdiff
path: root/pathd/path_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-04 07:54:06 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-01-04 07:54:06 -0500
commitfc7d07275e41ed49580872d80dd2a96fb73e0679 (patch)
tree113915eba45dcf920471c9eae7fd6e227bd7aa07 /pathd/path_zebra.c
parenta7f52fb0f7e0cdbb274ef447196da84f1bcf5a80 (diff)
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>
Diffstat (limited to 'pathd/path_zebra.c')
-rw-r--r--pathd/path_zebra.c2
1 files changed, 0 insertions, 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;
}