[PATCH] rrdcached: Handle journal replay in socket_permission_check().

1 message Options
Embed this post
Permalink
Sebastian Harl

[PATCH] rrdcached: Handle journal replay in socket_permission_check().

Reply Threaded More More options
Print post
Permalink
In this case, the permission check is by-passed, basically.
---
 program/src/rrd_daemon.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c
index 0422389..81c58e1 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);
 
--
1.6.5.rc2



_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (204 bytes) Download Attachment