author | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 22:08:22 +0000 (23:08 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 22:08:22 +0000 (23:08 +0100) |
1 | 2 | |||
---|---|---|---|---|
src/daemon/common.c | patch | | diff1 | | diff2 | | blob | history |
src/iptables.c | patch | | diff1 | | diff2 | | blob | history |
src/libcollectdclient/network.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/daemon/common.c
index dfaa61aa24fc4e49c6617497981b7f108819ef49,fba51ef8f73be8f8bbb174e55525e59e6e397eb0..dd4f9b15ae39a5036cbb0b40f0b8c21624ee473a
--- 1/src/daemon/common.c
--- 2/src/daemon/common.c
+++ b/src/daemon/common.c
char *ptr;
char *saveptr;
- i = -1;
+ if ((buffer == NULL) || (vl == NULL) || (ds == NULL))
+ return EINVAL;
+
+ i = 0;
dummy = buffer;
saveptr = NULL;
+ vl->time = 0;
while ((ptr = strtok_r (dummy, ":", &saveptr)) != NULL)
{
dummy = NULL;
diff --cc src/iptables.c
Simple merge
diff --cc src/libcollectdclient/network.c
Simple merge