[syslog-ng] Logging to db fails for multiple tables/destinations
Balazs Scheidler
bazsi at balabit.hu
Sat Feb 28 19:47:25 CET 2009
On Sat, 2009-02-28 at 09:41 +0100, Balazs Scheidler wrote:
> You are right. Only one of the destinations got initialized during
> startup. This patch fixes it for me:
>
> diff --git a/src/apphook.c b/src/apphook.c
> index ab9cb02..6115b27 100644
> --- a/src/apphook.c
> +++ b/src/apphook.c
> @@ -54,10 +54,10 @@ run_application_hook(gint type)
>
> if (e->type == type)
> {
> + l_next = l->next;
> application_hooks = g_list_remove_link(application_hooks, l);
> e->func(type, e->user_data);
> g_free(e);
> - l_next = l->next;
> g_list_free_1(l);
> }
> else
>
I just wanted to add that this should be in tomorrow's snapshot.
--
Bazsi
More information about the syslog-ng
mailing list