From dec2d79f8ae2a6ee2def8e73721f135e3d47f05f 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@1925 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 0422389a..81c58e1a 100644 --- a/program/src/rrd_daemon.c +++ b/program/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