]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerKarolin Seeger <kseeger@samba.org>
Wed, 22 Nov 2017 12:43:49 +0000 (13:43 +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>
(cherry picked from commit 49308f7f22f3d6fa05cc81fdef3db020e503fa9f)

Autobuild-User(v4-6-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-6-test): Wed Nov 22 13:43:49 CET 2017 on sn-devel-144

ctdb/common/sock_daemon.c

index b53b4d85333f087dcc8a67e2b8fae279ed786fc6..1fe5ff50720db3daa34e908db5ef246cc1befdae 100644 (file)
@@ -628,6 +628,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());