From: oetiker Date: Sun, 4 Oct 2009 11:32:18 +0000 (+0000) Subject: rrdcached: Handle journal replay in socket_permission_check(). -- Sebastian Harl X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e8b2dea69851c592e404bdc1922e06602106af71;p=rrdtool.git 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 --- 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);