X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_client.c;fp=src%2Frrd_client.c;h=3347b82577339a9bc307fc7d149f485a16fdf0af;hp=5481ba3b2622355e728d4f2337ddb2b1648fb380;hb=2f28002d6613be5c03edb76958b6aa6b300c8a80;hpb=9e3a1300dfa5837a78c1135fb4d5699013d59b16 diff --git a/src/rrd_client.c b/src/rrd_client.c index 5481ba3..3347b82 100644 --- a/src/rrd_client.c +++ b/src/rrd_client.c @@ -1495,7 +1495,11 @@ int rrdc_stats_get (rrdc_stats_t **ret_stats) /* {{{ */ response_free (res); if (head == NULL) +#ifdef EPROTO return (EPROTO); +#else + return (EINVAL); +#endif *ret_stats = head; return (0);