X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.c;h=fba51ef8f73be8f8bbb174e55525e59e6e397eb0;hb=22651d8d4dc49e24bbac2cd34e0642dcf3639c97;hp=53c1f08ac5aa87c362844a8189e703e96a699b77;hpb=f701e685eab83f37ecc6501d7dbe4eb941a454bb;p=collectd.git diff --git a/src/daemon/common.c b/src/daemon/common.c index 53c1f08a..fba51ef8 100644 --- a/src/daemon/common.c +++ b/src/daemon/common.c @@ -1170,6 +1170,9 @@ int parse_values (char *buffer, value_list_t *vl, const data_set_t *ds) char *ptr; char *saveptr; + if ((buffer == NULL) || (vl == NULL) || (ds == NULL)) + return EINVAL; + i = -1; dummy = buffer; saveptr = NULL;