From: themylogin Date: Wed, 27 Mar 2019 17:09:55 +0000 (+0100) Subject: fix segfault on non-existent RRD file when using rrdcached X-Git-Tag: v1.7.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24b922a2eae193d5d44c01a75786aca4b277a4db;p=thirdparty%2Frrdtool-1.x.git 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) --- 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 ... */