From 4bb0750f57b49dd2f354f761b66eb7bc59e32942 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 16 Oct 2008 06:11:54 +0000 Subject: [PATCH] error reporting caused crash in journal replay git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1610 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index 9fbbc113..40785b00 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -1525,6 +1525,9 @@ static int handle_request_update (listen_socket_t *sock, /* {{{ */ if (values_num < 1) { + /* journal replay mode */ + if (sock == NULL) return RESP_ERR; + /* if we had only one update attempt, then return the full error message... try to get the most information out of the limited error space allowed by the protocol -- 2.30.2