diff options
author | Jeremy Allison <jra@samba.org> | 2010-06-14 15:55:19 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-06-14 16:26:13 -0700 |
commit | c705c35076fa7a200d0156199d68870e73d1f30b (patch) | |
tree | 55363699812e0f54dac2d02c442f1612d224c696 /libcli | |
parent | 5ad12f70c543005fa5ef5485018150900382b8f0 (diff) | |
download | samba-c705c35076fa7a200d0156199d68870e73d1f30b.tar.gz samba-c705c35076fa7a200d0156199d68870e73d1f30b.tar.bz2 samba-c705c35076fa7a200d0156199d68870e73d1f30b.zip |
Fix warning messages about unused result of talloc_move. We're really talloc_steal'ing here.
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/named_pipe_auth/npa_tstream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcli/named_pipe_auth/npa_tstream.c b/libcli/named_pipe_auth/npa_tstream.c index c96e30f806..273c4123e1 100644 --- a/libcli/named_pipe_auth/npa_tstream.c +++ b/libcli/named_pipe_auth/npa_tstream.c @@ -1324,7 +1324,7 @@ static void tstream_npa_accept_existing_reply(struct tevent_req *subreq) DEBUG(0, ("Out of memory!\n")); goto reply; } - talloc_move(state->info3, &pipe_request); + talloc_steal(state->info3, pipe_request); /* we need to force byte mode in this level */ state->file_type = FILE_TYPE_BYTE_MODE_PIPE; @@ -1531,9 +1531,9 @@ int _tstream_npa_accept_existing_recv(struct tevent_req *req, *server_name = talloc_move(mem_ctx, &state->server_name); *info3 = talloc_move(mem_ctx, &state->info3); *session_key = state->session_key; - talloc_move(mem_ctx, &state->session_key.data); + talloc_steal(mem_ctx, state->session_key.data); *delegated_creds = state->delegated_creds; - talloc_move(mem_ctx, &state->delegated_creds.data); + talloc_steal(mem_ctx, state->delegated_creds.data); tevent_req_received(req); return 0; |