diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-01-11 19:54:36 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-01-16 17:26:26 +0100 |
commit | d09469e575233242eab2a8c1c0767f52e7cad1e5 (patch) | |
tree | aeb604450c5cb60ab1ecc56c2b212962b04f9708 /ctdb/common | |
parent | d5be55725000eb34611dc76a2e8e7188eea2503f (diff) | |
download | samba-d09469e575233242eab2a8c1c0767f52e7cad1e5.tar.gz |
ctdb-common: Avoid any processing after finishing tevent_req
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12510
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/sock_daemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ctdb/common/sock_daemon.c b/ctdb/common/sock_daemon.c index 08102c38642..3b679ab1332 100644 --- a/ctdb/common/sock_daemon.c +++ b/ctdb/common/sock_daemon.c @@ -703,13 +703,12 @@ static void sock_daemon_run_socket_fail(struct tevent_req *subreq) status = sock_socket_start_recv(subreq, &ret); TALLOC_FREE(subreq); + sock_daemon_run_shutdown(req); if (! status) { tevent_req_error(req, ret); } else { tevent_req_done(req); } - - sock_daemon_run_shutdown(req); } static void sock_daemon_run_watch_pid(struct tevent_req *subreq) |