From 592fce7fb149ca5e82b14d9c8f13a4da1babe2b7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Jan 2005 18:49:10 +0000 Subject: r4726: - use the name tcon and tid instead of conn and cnum - make use of talloc destructors metze (This used to be commit 8308da6ce4a95f8c10e22949ef00e9e64f2dbb85) --- source4/smb_server/reply.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/smb_server/reply.c') diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c index 2dfa3726e2..2dc36a3b65 100644 --- a/source4/smb_server/reply.c +++ b/source4/smb_server/reply.c @@ -112,8 +112,8 @@ void reply_tcon(struct smbsrv_request *req) req_setup_reply(req, 2, 0); SSVAL(req->out.vwv, VWV(0), con.tcon.out.max_xmit); - SSVAL(req->out.vwv, VWV(1), con.tcon.out.cnum); - SSVAL(req->out.hdr, HDR_TID, req->tcon->cnum); + SSVAL(req->out.vwv, VWV(1), con.tcon.out.tid); + SSVAL(req->out.hdr, HDR_TID, req->tcon->tid); req_send_reply(req); } @@ -181,8 +181,8 @@ void reply_tcon_and_X(struct smbsrv_request *req) } /* set the incoming and outgoing tid to the just created one */ - SSVAL(req->in.hdr, HDR_TID, con.tconx.out.cnum); - SSVAL(req->out.hdr,HDR_TID, con.tconx.out.cnum); + SSVAL(req->in.hdr, HDR_TID, con.tconx.out.tid); + SSVAL(req->out.hdr,HDR_TID, con.tconx.out.tid); chain_reply(req); } @@ -1360,7 +1360,7 @@ void reply_tdis(struct smbsrv_request *req) return; } - close_cnum(req->tcon); + talloc_free(req->tcon); /* construct reply */ req_setup_reply(req, 0, 0); -- cgit