From 814ca69a3329ccc88040ed184a413e4e5adf604c Mon Sep 17 00:00:00 2001 From: biell Date: Wed, 24 Aug 2016 14:39:32 -0400 Subject: [PATCH] fix segfault on non-existent RRD file when using rrdcached --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2