mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 20:18:54 +00:00
lib: Remove double log mutex unlock
Coverity report caught this log mutex being unlocked twice. Removing the extra one before the goto statement. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
daeca91f7c
commit
00a7f422c3
@ -387,10 +387,8 @@ void vzlog(int priority, const char *format, va_list args)
|
||||
|
||||
/* If it doesn't match on a filter, do nothing with the debug log */
|
||||
if ((priority == LOG_DEBUG) && zlog_filter_count
|
||||
&& vzlog_filter(zl, &tsctl, proto_str, priority, msg)) {
|
||||
pthread_mutex_unlock(&loglock);
|
||||
&& vzlog_filter(zl, &tsctl, proto_str, priority, msg))
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* call external hook */
|
||||
hook_call(zebra_ext_log, priority, format, args);
|
||||
|
Loading…
Reference in New Issue
Block a user