Code

Fix segfault in network plugin
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 13 Apr 2016 16:33:08 +0000 (18:33 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 13 Apr 2016 16:38:27 +0000 (18:38 +0200)
While cleaning up malloc calls in 1ebf2f31, I cleaned up one too many.

Fixes #1667

src/network.c

index 6be4ed59521b8b80c2ec9e5220dea961a60fc8d8..171904d2b4e01212883e6d627b2a02fb752810b0 100644 (file)
@@ -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);