From: Florian Forster Date: Wed, 23 Nov 2011 13:40:58 +0000 (+0100) Subject: network plugin: Use the new plugin_dispatch_values_secure(). X-Git-Tag: collectd-4.10.5~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf160b5fd74ac8553512a5d05682093faafd34f9;p=collectd.git network plugin: Use the new plugin_dispatch_values_secure(). Change-Id: I2cc65a36366c6c714cd79c2905879bce313efe31 --- diff --git a/src/network.c b/src/network.c index 95f54641..8de557d2 100644 --- a/src/network.c +++ b/src/network.c @@ -405,7 +405,7 @@ static int network_dispatch_values (value_list_t *vl, /* {{{ */ } } - plugin_dispatch_values (vl); + plugin_dispatch_values_secure (vl); stats_values_dispatched++; meta_data_destroy (vl->meta); @@ -3217,13 +3217,13 @@ static int network_stats_read (void) /* {{{ */ vl.values[0].counter = (counter_t) copy_octets_rx; vl.values[1].counter = (counter_t) copy_octets_tx; sstrncpy (vl.type, "if_octets", sizeof (vl.type)); - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); /* Packets received / send */ vl.values[0].counter = (counter_t) copy_packets_rx; vl.values[1].counter = (counter_t) copy_packets_tx; sstrncpy (vl.type, "if_packets", sizeof (vl.type)); - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); /* Values (not) dispatched and (not) send */ sstrncpy (vl.type, "total_values", sizeof (vl.type)); @@ -3232,28 +3232,28 @@ static int network_stats_read (void) /* {{{ */ vl.values[0].derive = (derive_t) copy_values_dispatched; sstrncpy (vl.type_instance, "dispatch-accepted", sizeof (vl.type_instance)); - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); vl.values[0].derive = (derive_t) copy_values_not_dispatched; sstrncpy (vl.type_instance, "dispatch-rejected", sizeof (vl.type_instance)); - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); vl.values[0].derive = (derive_t) copy_values_sent; sstrncpy (vl.type_instance, "send-accepted", sizeof (vl.type_instance)); - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); vl.values[0].derive = (derive_t) copy_values_not_sent; sstrncpy (vl.type_instance, "send-rejected", sizeof (vl.type_instance)); - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); /* Receive queue length */ vl.values[0].gauge = (gauge_t) copy_receive_list_length; sstrncpy (vl.type, "queue_length", sizeof (vl.type)); vl.type_instance[0] = 0; - plugin_dispatch_values (&vl); + plugin_dispatch_values_secure (&vl); return (0); } /* }}} int network_stats_read */