summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f90d437)
raw | patch | inline | side by side (parent: f90d437)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 24 Feb 2008 14:30:34 +0000 (14:30 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 24 Feb 2008 14:30:34 +0000 (14:30 +0000) |
program/src/rrd_restore.c | patch | blob | history |
index 42c316c0f056d7b9d32e19b508dbec7c0d9e71b6..dc28a9178a51c5623d105ca3d9a20e4a9449e059 100644 (file)
eat_tag(&ptr2,"cdp_prep");
for(i=0;i< (int)rrd->stat_head->ds_cnt;i++)
{
- eat_tag(&ptr2,"ds");
+ if (eat_tag(&ptr2, "ds") != 1){
+ rrd_set_error("expected to find %lu <ds> entries in <cdp_prep>",rrd->stat_head->ds_cnt);
+ return -1;
+ }
/* support to read CDP parameters */
rra_index = rrd->stat_head->rra_cnt-1;
skip(&ptr2);