summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 23:39:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:19 -0500
commit5a064d4a62c35167d888356d01dfdb76f59bc6b1 (patch)
tree8bc45d13dd6e7dae237bd2954454eb98fc25327e /source4/smb_server
parent5390daefb655d275beab33ace3fe95366eaed207 (diff)
downloadsamba-5a064d4a62c35167d888356d01dfdb76f59bc6b1.tar.gz
samba-5a064d4a62c35167d888356d01dfdb76f59bc6b1.tar.bz2
samba-5a064d4a62c35167d888356d01dfdb76f59bc6b1.zip
r2669: convert make_user_info() and associated functions from malloc to talloc
(This used to be commit 278cef77f083c002d17ecbbe18c20825a380eda3)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/sesssetup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/smb_server/sesssetup.c b/source4/smb_server/sesssetup.c
index 9ada617985..01d170aec7 100644
--- a/source4/smb_server/sesssetup.c
+++ b/source4/smb_server/sesssetup.c
@@ -56,7 +56,8 @@ static NTSTATUS sesssetup_old(struct smbsrv_request *req, union smb_sesssetup *s
}
remote_machine = socket_get_peer_addr(req->smb_conn->connection->socket, mem_ctx);
- status = make_user_info_for_reply_enc(&user_info,
+ status = make_user_info_for_reply_enc(req->smb_conn,
+ &user_info,
sess->old.in.user, sess->old.in.domain,
remote_machine,
sess->old.in.password,
@@ -115,7 +116,7 @@ static NTSTATUS sesssetup_nt1(struct smbsrv_request *req, union smb_sesssetup *s
if (sess->nt1.in.user && *sess->nt1.in.user) {
return NT_STATUS_ACCESS_DENIED;
} else {
- make_user_info_guest(&user_info);
+ make_user_info_guest(req->smb_conn, &user_info);
}
status = make_auth_context_subsystem(req->smb_conn, &auth_context);
@@ -137,7 +138,8 @@ static NTSTATUS sesssetup_nt1(struct smbsrv_request *req, union smb_sesssetup *s
return NT_STATUS_NO_MEMORY;
}
remote_machine = socket_get_peer_addr(req->smb_conn->connection->socket, mem_ctx);
- status = make_user_info_for_reply_enc(&user_info,
+ status = make_user_info_for_reply_enc(req->smb_conn,
+ &user_info,
sess->nt1.in.user, sess->nt1.in.domain,
remote_machine,
sess->nt1.in.password1,