From: Florian Forster Date: Fri, 13 Jun 2008 12:56:10 +0000 (+0200) Subject: exec plugin: Set notify->meta to NULL before copying the list. X-Git-Tag: collectd-4.5.0~115^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9cce919dd741a09986519b496cecaa7781f139e;p=collectd.git exec plugin: Set notify->meta to NULL before copying the list. Otherwise we will run into a nasty endless loop. --- 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);