From e8b2dea69851c592e404bdc1922e06602106af71 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 4 Oct 2009 11:32:18 +0000 Subject: [PATCH] rrdcached: Handle journal replay in socket_permission_check(). -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1925 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 0422389..81c58e1 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -1673,6 +1673,9 @@ static int socket_permission_check (listen_socket_t *sock, /* {{{ */ { ssize_t i; + if (sock == NULL) /* journal replay */ + return (1); + if (cmd == NULL) return (-1); -- 2.30.2