ctdb-common: Call missing tevent_wakeup_recv() in sock_daemon
authorAmitay Isaacs <amitay@gmail.com>
Fri, 10 Nov 2017 01:18:01 +0000 (12:18 +1100)
committerMartin Schwenke <martins@samba.org>
Tue, 21 Nov 2017 04:03:16 +0000 (05:03 +0100)
https://bugzilla.samba.org/show_bug.cgi?id=13153

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/sock_daemon.c

index ba171af52c9acc1f4186f8927f42b8b3eb16d9f7..bbeff53710328cdae4122b51fa196fedf0976ef4 100644 (file)
@@ -634,6 +634,14 @@ static void sock_daemon_run_started(struct tevent_req *subreq)
        struct sock_daemon_run_state *state = tevent_req_data(
                req, struct sock_daemon_run_state);
        struct sock_daemon_context *sockd = state->sockd;
+       bool status;
+
+       status = tevent_wakeup_recv(subreq);
+       TALLOC_FREE(subreq);
+       if (! status) {
+               tevent_req_error(req, EIO);
+               return;
+       }
 
        D_NOTICE("daemon started, pid=%u\n", getpid());