Hi Steven,

this hunk was missing from original David patch. Please apply.

Without this fix, it is possible to crach by:

logsys_init(...

and calling logsys_config_priority_set right after because logsys_subsys_id is not set.

Please apply
Fabio

--
I'm going to make him an offer he can't refuse.
Index: corosync/exec/logsys.h
===================================================================
--- corosync/exec/logsys.h      (revision 1620)
+++ corosync/exec/logsys.h      (working copy)
@@ -351,6 +351,9 @@
 extern void _logsys_config_priority_set (unsigned int id, unsigned int 
priority);
 
 #define logsys_config_priority_set(priority) do {                      \
+       if (logsys_single_id)                                           \
+               logsys_subsys_id = 0;                                   \
+       assert (logsys_subsys_id != -1);                                \
        _logsys_config_priority_set (logsys_subsys_id, priority);       \
 } while(0)
 
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to