r24077: Convert reply_tdis to the new API
authorVolker Lendecke <vlendec@samba.org>
Mon, 30 Jul 2007 10:20:52 +0000 (10:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:02 +0000 (12:29 -0500)
(This used to be commit bd0cb48dde401f48dec98fa7ca794a912e0244f1)

source3/smbd/process.c
source3/smbd/reply.c

index 85e061710d93d00e6af5d32e9c4e3b8fa49b2cec..fdec2d106d52495400e25b7bb94a012ab1310425 100644 (file)
@@ -747,7 +747,7 @@ static const struct smb_message_struct {
 /* 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 */
index c347182b99457304a6c3aa32c8175c07eacf1919..7af0807c0a0df5df55e83272133086827f8b4525 100644 (file)
@@ -3704,27 +3704,24 @@ int reply_unlock(connection_struct *conn, char *inbuf,char *outbuf, int size,
  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;
 }
 
 /****************************************************************************