From 24b922a2eae193d5d44c01a75786aca4b277a4db Mon Sep 17 00:00:00 2001 From: themylogin Date: Wed, 27 Mar 2019 18:09:55 +0100 Subject: [PATCH] fix segfault on non-existent RRD file when using rrdcached fix segfault on non-existent RRD file when using rrdcached + rrdtool xport (like 814ca69a3329ccc88040ed184a413e4e5adf604c does for rrdtool graph) --- src/rrd_xport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 0df0af55..3a402a4f 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -265,7 +265,7 @@ static int rrd_xport_fn( /* pull the data from the rrd files ... */ - if (data_fetch(im) == -1) + if (data_fetch(im) != 0) return -1; /* evaluate CDEF operations ... */ -- 2.47.2