Dirk Mueller
fcaedf477d
- log-commit.patch: fix crash in log_commit with empty log list OBS-URL: https://build.opensuse.org/request/show/1157629 OBS-URL: https://build.opensuse.org/package/show/network/bird?expand=0&rev=40
13 lines
397 B
Diff
13 lines
397 B
Diff
Index: bird-2.14/sysdep/unix/log.c
|
|
===================================================================
|
|
--- bird-2.14.orig/sysdep/unix/log.c
|
|
+++ bird-2.14/sysdep/unix/log.c
|
|
@@ -160,6 +160,7 @@ log_commit(int class, buffer *buf)
|
|
strcpy(buf->end - 100, " ... <too long>");
|
|
|
|
log_lock();
|
|
+ if (current_log_list)
|
|
WALK_LIST(l, *current_log_list)
|
|
{
|
|
if (!(l->mask & (1 << class)))
|