projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5198109
)
src/common.c: More reliable error reporting in `parse_values'.
author
Florian Forster
<octo@noris.net>
Wed, 1 Jul 2009 12:56:17 +0000
(14:56 +0200)
committer
Florian Forster
<octo@noris.net>
Wed, 1 Jul 2009 12:56:17 +0000
(14:56 +0200)
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
1af2f14
..
95c3dce
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-805,7
+805,11
@@
int parse_values (char *buffer, value_list_t *vl, const data_set_t *ds)
dummy = NULL;
if (i >= vl->values_len)
+ {
+ /* Make sure i is invalid. */
+ i = vl->values_len + 1;
break;
+ }
if (i == -1)
{