diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-01-19 13:39:54 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-01-19 13:39:54 +1100 |
commit | d6e801b7d9a666d40f109df20dff0faaa2b46e70 (patch) | |
tree | 77d5e6ac67825eca5b8c970f6bfba95d8002f024 /source3/lib/util_sock.c | |
parent | 9fa6fb3d9fb2e4cee81ad34d6fd0cbe6f5265171 (diff) | |
parent | fe9dd8710d577478b324d1d507de0ecd77df2ea5 (diff) | |
download | samba-d6e801b7d9a666d40f109df20dff0faaa2b46e70.tar.gz samba-d6e801b7d9a666d40f109df20dff0faaa2b46e70.tar.bz2 samba-d6e801b7d9a666d40f109df20dff0faaa2b46e70.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r-- | source3/lib/util_sock.c | 20 |
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; |