summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-03 12:05:13 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-06 14:50:39 +0200
commit3709bf6b01a948100b55524f5b0c7d732774759a (patch)
tree414c9dae1822a54032904add4090299be234fc46 /source3
parent8e3ec7c31a4fbc0b54c7c9d61279c405cdf72dca (diff)
downloadsamba-3709bf6b01a948100b55524f5b0c7d732774759a.tar.gz
samba-3709bf6b01a948100b55524f5b0c7d732774759a.tar.bz2
samba-3709bf6b01a948100b55524f5b0c7d732774759a.zip
s3:libsmb: use 'state' instead of 'talloc_tos()' in smb2cli_tcon*
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb2cli_tcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c
index c22373994c..7071a66196 100644
--- a/source3/libsmb/smb2cli_tcon.c
+++ b/source3/libsmb/smb2cli_tcon.c
@@ -54,7 +54,7 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx,
print_sockaddr(srv_ip, sizeof(srv_ip), cli_state_remote_sockaddr(cli));
- tcon_share = talloc_asprintf(talloc_tos(), "\\\\%s\\%s",
+ tcon_share = talloc_asprintf(state, "\\\\%s\\%s",
srv_ip, share);
if (tevent_req_nomem(tcon_share, req)) {
return tevent_req_post(req, ev);
@@ -113,7 +113,7 @@ static void smb2cli_tcon_done(struct tevent_req *subreq)
}
};
- status = smb2cli_req_recv(subreq, talloc_tos(), &iov,
+ status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(subreq);