From 5f039c7d87739defae72da96020ea84a8311eb9c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 17 Jun 2010 16:27:37 +0200 Subject: fix wrong list addition in plugin re-use logic This patch fixes a bug that makes ulogd loops forever while propagating inputs to the output plugin. It is reproducible if you re-use three or more plugin instances. The problem is that the parameters in the list addition are in incorrect order. Signed-off-by: Pablo Neira Ayuso --- src/ulogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ulogd.c') diff --git a/src/ulogd.c b/src/ulogd.c index aac7be7..f378c6f 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -753,7 +753,7 @@ static int pluginstance_started(struct ulogd_pluginstance *npi) ulogd_log(ULOGD_INFO, "%s instance already " "loaded\n", pi->id); - llist_add(&pi->plist, &npi->plist); + llist_add(&npi->plist, &pi->plist); return 1; } } -- cgit v1.2.3