From 929de6af34d4d0d7be5a44436d180bc77ddb1dbb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 17 Oct 2005 15:08:52 +0000 Subject: r11120: calling_name is used later in sesssetup_nt1, so hang the names to the right talloc context. Volker (This used to be commit 256cf928d786b2533953505aea20ec80a25c6929) --- source4/smb_server/reply.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/smb_server/reply.c') diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c index a52616a727..03f9f58983 100644 --- a/source4/smb_server/reply.c +++ b/source4/smb_server/reply.c @@ -2392,14 +2392,16 @@ static NTSTATUS parse_session_request(struct smbsrv_request *req) return NT_STATUS_NO_MEMORY; } - status = nbt_name_from_blob(req, &blob, req->smb_conn->negotiate.called_name); + status = nbt_name_from_blob(req->smb_conn, &blob, + req->smb_conn->negotiate.called_name); NT_STATUS_NOT_OK_RETURN(status); blob.data += blob.length; blob.length = ascii_len_n(blob.data, req->in.size - PTR_DIFF(blob.data, req->in.buffer)); if (blob.length == 0) return NT_STATUS_BAD_NETWORK_NAME; - status = nbt_name_from_blob(req, &blob, req->smb_conn->negotiate.calling_name); + status = nbt_name_from_blob(req->smb_conn, &blob, + req->smb_conn->negotiate.calling_name); NT_STATUS_NOT_OK_RETURN(status); req->smb_conn->negotiate.done_nbt_session = True; -- cgit