From: biell Date: Wed, 24 Aug 2016 18:39:32 +0000 (-0400) Subject: fix segfault on non-existent RRD file when using rrdcached X-Git-Tag: v1.7.0~37^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=814ca69a3329ccc88040ed184a413e4e5adf604c;p=thirdparty%2Frrdtool-1.x.git fix segfault on non-existent RRD file when using rrdcached --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 6a380186..a03c4bb8 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3794,7 +3794,7 @@ int graph_paint( } /* pull the data from the rrd files ... */ - if (data_fetch(im) == -1) + if (data_fetch(im) != 0) return -1; /* evaluate VDEF and CDEF operations ... */ if (data_calc(im) == -1)