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.tokkee.org/?a=commitdiff_plain;h=dec2d79f8ae2a6ee2def8e73721f135e3d47f05f;p=rrdtool-all.git 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 --- 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);