summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-01-18 17:27:41 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-01-18 17:27:41 +0100
commit6ffe233f9442792a0e8e52167a01b76eabd83be9 (patch)
tree37a461845d9395c2290bbde73c3c7f95a7d3a37f /source3/lib/util_sock.c
parentbfbb0fb17f4eedb8f22d0694c5d4a3b82dfe189b (diff)
parent0dbd3968626445b4dcb00307e45206b37dd0e8ad (diff)
downloadsamba-6ffe233f9442792a0e8e52167a01b76eabd83be9.tar.gz
samba-6ffe233f9442792a0e8e52167a01b76eabd83be9.tar.bz2
samba-6ffe233f9442792a0e8e52167a01b76eabd83be9.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 98c25c1e24..3ddc4342a7 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -978,16 +978,10 @@ struct async_req *open_socket_out_send(TALLOC_CTX *mem_ctx,
struct open_socket_out_state *state;
NTSTATUS status;
- result = async_req_new(mem_ctx);
- if (result == NULL) {
+ if (!async_req_setup(mem_ctx, &result, &state,
+ struct open_socket_out_state)) {
return NULL;
}
- state = talloc(result, struct open_socket_out_state);
- if (state == NULL) {
- goto fail;
- }
- result->private_data = state;
-
state->ev = ev;
state->ss = *pss;
state->port = port;
@@ -1170,16 +1164,10 @@ struct async_req *open_socket_out_defer_send(TALLOC_CTX *mem_ctx,
struct open_socket_out_defer_state *state;
NTSTATUS status;
- result = async_req_new(mem_ctx);
- if (result == NULL) {
+ if (!async_req_setup(mem_ctx, &result, &state,
+ struct open_socket_out_defer_state)) {
return NULL;
}
- state = talloc(result, struct open_socket_out_defer_state);
- if (state == NULL) {
- goto fail;
- }
- result->private_data = state;
-
state->ev = ev;
state->ss = *pss;
state->port = port;