diff --git a/src/rrd_client.c b/src/rrd_client.c
index e7c227b8564338c1d74ab2f29c8bd033d459944d..608eb8810113180b7cc409c711a498b8cb47189e 100644 (file)
--- a/src/rrd_client.c
+++ b/src/rrd_client.c
response_free (res);
if (head == NULL)
+#ifdef EPROTO
return (EPROTO);
+#else
+ return (EINVAL);
+#endif
*ret_stats = head;
return (0);