summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-05-16 16:11:54 +0200
committerChristian Ambach <ambi@samba.org>2013-05-17 11:22:45 +0200
commitd67e614a07cbf143293436d380aba9a022c0e31b (patch)
tree8bbd6a2d278ee96a48761fa5083130080267e888 /source3/lib
parent272a58afff69f52704bcc9a62947853b638420d5 (diff)
downloadsamba-d67e614a07cbf143293436d380aba9a022c0e31b.tar.gz
samba-d67e614a07cbf143293436d380aba9a022c0e31b.tar.bz2
samba-d67e614a07cbf143293436d380aba9a022c0e31b.zip
lib: Add before/after hooks to async_connect
This will facilitiate [un]become_root for smbd to connect safely to ctdbd. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdb_conn.c2
-rw-r--r--source3/lib/util_sock.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/ctdb_conn.c b/source3/lib/ctdb_conn.c
index a96615fb6c..d7bf6a5755 100644
--- a/source3/lib/ctdb_conn.c
+++ b/source3/lib/ctdb_conn.c
@@ -83,7 +83,7 @@ struct tevent_req *ctdb_conn_init_send(TALLOC_CTX *mem_ctx,
subreq = async_connect_send(state, ev, state->conn->fd,
(struct sockaddr *)&state->addr,
- sizeof(state->addr));
+ sizeof(state->addr), NULL, NULL, NULL);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 8f212e5d85..eb38055d19 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -586,7 +586,7 @@ struct tevent_req *open_socket_out_send(TALLOC_CTX *mem_ctx,
subreq = async_connect_send(state, state->ev, state->fd,
(struct sockaddr *)&state->ss,
- state->salen);
+ state->salen, NULL, NULL, NULL);
if ((subreq == NULL)
|| !tevent_req_set_endtime(
subreq, state->ev,
@@ -638,7 +638,7 @@ static void open_socket_out_connected(struct tevent_req *subreq)
subreq = async_connect_send(state, state->ev, state->fd,
(struct sockaddr *)&state->ss,
- state->salen);
+ state->salen, NULL, NULL, NULL);
if (tevent_req_nomem(subreq, req)) {
return;
}