Code

Merge branch 'collectd-5.5'
authorFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 22:08:22 +0000 (23:08 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 22:08:22 +0000 (23:08 +0100)
1  2 
src/daemon/common.c
src/iptables.c
src/libcollectdclient/network.c

index dfaa61aa24fc4e49c6617497981b7f108819ef49,fba51ef8f73be8f8bbb174e55525e59e6e397eb0..dd4f9b15ae39a5036cbb0b40f0b8c21624ee473a
@@@ -1169,10 -1170,12 +1169,13 @@@ int parse_values (char *buffer, value_l
        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
Simple merge