From 00df28382326b86f4998e3bb9b16d6103a231668 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 13 Apr 2016 18:33:08 +0200 Subject: [PATCH] Fix segfault in network plugin While cleaning up malloc calls in 1ebf2f31, I cleaned up one too many. Fixes #1667 --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2