From: Ruben Kerkhof Date: Wed, 13 Apr 2016 16:33:08 +0000 (+0200) Subject: Fix segfault in network plugin X-Git-Tag: collectd-5.6.0~356 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=00df28382326b86f4998e3bb9b16d6103a231668;p=collectd.git Fix segfault in network plugin While cleaning up malloc calls in 1ebf2f31, I cleaned up one too many. Fixes #1667 --- diff --git a/src/network.c b/src/network.c index 6be4ed59..171904d2 100644 --- a/src/network.c +++ b/src/network.c @@ -2501,7 +2501,7 @@ static int network_receive (void) /* {{{ */ break; } - ent->data = malloc (*ent->data); + ent->data = malloc (network_config_packet_size); if (ent->data == NULL) { sfree (ent);