]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fix segfault on non-existent RRD file when using rrdcached
authorthemylogin <themylogin@gmail.com>
Wed, 27 Mar 2019 17:09:55 +0000 (18:09 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 27 Mar 2019 18:59:00 +0000 (19:59 +0100)
fix segfault on non-existent RRD file when using rrdcached + rrdtool xport
(like 814ca69a3329ccc88040ed184a413e4e5adf604c does for rrdtool graph)

src/rrd_xport.c

index 0df0af55ca8683472b0c52b059e5b3bc6cfa0fab..3a402a4f1db5b1ab4ad9427ef2d272171e19a9dd 100644 (file)
@@ -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 ... */