svn commit: samba r24077 - in branches/SAMBA_3_2/source/smbd: .
vlendec at samba.org
vlendec at samba.org
Mon Jul 30 10:20:53 GMT 2007
Author: vlendec
Date: 2007-07-30 10:20:52 +0000 (Mon, 30 Jul 2007)
New Revision: 24077
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24077
Log:
Convert reply_tdis to the new API
Modified:
branches/SAMBA_3_2/source/smbd/process.c
branches/SAMBA_3_2/source/smbd/reply.c
Changeset:
Modified: branches/SAMBA_3_2/source/smbd/process.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/process.c 2007-07-30 10:05:47 UTC (rev 24076)
+++ branches/SAMBA_3_2/source/smbd/process.c 2007-07-30 10:20:52 UTC (rev 24077)
@@ -747,7 +747,7 @@
/* 0x6e */ { NULL, NULL, NULL, 0 },
/* 0x6f */ { NULL, NULL, NULL, 0 },
/* 0x70 */ { "SMBtcon",reply_tcon,NULL,0},
-/* 0x71 */ { "SMBtdis",reply_tdis,NULL,DO_CHDIR},
+/* 0x71 */ { "SMBtdis",NULL,reply_tdis,DO_CHDIR},
/* 0x72 */ { "SMBnegprot",NULL,reply_negprot,0},
/* 0x73 */ { "SMBsesssetupX",NULL,reply_sesssetup_and_X,0},
/* 0x74 */ { "SMBulogoffX", reply_ulogoffX,NULL, 0}, /* ulogoff doesn't give a valid TID */
Modified: branches/SAMBA_3_2/source/smbd/reply.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/reply.c 2007-07-30 10:05:47 UTC (rev 24076)
+++ branches/SAMBA_3_2/source/smbd/reply.c 2007-07-30 10:20:52 UTC (rev 24077)
@@ -3704,27 +3704,24 @@
conn POINTER CAN BE NULL HERE !
****************************************************************************/
-int reply_tdis(connection_struct *conn,
- char *inbuf,char *outbuf, int dum_size, int dum_buffsize)
+void reply_tdis(connection_struct *conn, struct smb_request *req)
{
- int outsize = set_message(inbuf,outbuf,0,0,False);
- uint16 vuid;
START_PROFILE(SMBtdis);
- vuid = SVAL(inbuf,smb_uid);
-
if (!conn) {
DEBUG(4,("Invalid connection in tdis\n"));
+ reply_doserror(req, ERRSRV, ERRinvnid);
END_PROFILE(SMBtdis);
- return ERROR_DOS(ERRSRV,ERRinvnid);
+ return;
}
conn->used = False;
- close_cnum(conn,vuid);
-
+ close_cnum(conn,req->vuid);
+
+ reply_outbuf(req, 0, 0);
END_PROFILE(SMBtdis);
- return outsize;
+ return;
}
/****************************************************************************
More information about the samba-cvs
mailing list