projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b10a6
)
Fix segfault in network plugin
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 13 Apr 2016 16:33:08 +0000
(18:33 +0200)
committer
Ruben 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
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
6be4ed5
..
171904d
100644
(file)
--- 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);