From c9cce919dd741a09986519b496cecaa7781f139e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 13 Jun 2008 14:56:10 +0200 Subject: [PATCH] exec plugin: Set notify->meta to NULL before copying the list. Otherwise we will run into a nasty endless loop. --- src/exec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/exec.c b/src/exec.c index 5f9d6ad2..6b6836e9 100644 --- a/src/exec.c +++ b/src/exec.c @@ -788,6 +788,10 @@ static int exec_notification (const notification_t *n) pln->pl = pl; memcpy (&pln->n, n, sizeof (notification_t)); + + /* Set the `meta' member to NULL, otherwise `plugin_notification_meta_copy' + * will run into an endless loop. */ + pln->n.meta = NULL; plugin_notification_meta_copy (&pln->n, n); pthread_attr_init (&attr); -- 2.30.2