s3: Pass sconn explicitly to reply_special
authorVolker Lendecke <vl@samba.org>
Sat, 12 Jun 2010 09:50:56 +0000 (11:50 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 12 Jun 2010 13:42:52 +0000 (15:42 +0200)
source3/include/proto.h
source3/smbd/process.c
source3/smbd/reply.c

index 7c1ca8c012f78aa0ca39b057e186673edd07a799..6bb96e9fe37965777fa33d02a8e1fd8a70826d25 100644 (file)
@@ -6139,7 +6139,7 @@ bool check_fsp_ntquota_handle(connection_struct *conn, struct smb_request *req,
                              files_struct *fsp);
 bool fsp_belongs_conn(connection_struct *conn, struct smb_request *req,
                      files_struct *fsp);
-void reply_special(char *inbuf);
+void reply_special(struct smbd_server_connection *sconn, char *inbuf);
 void reply_tcon(struct smb_request *req);
 void reply_tcon_and_X(struct smb_request *req);
 void reply_unknown_new(struct smb_request *req, uint8 type);
index 6b48d96ffa4ca0012bf0343b0b707da5ebe1895d..629465cc832c3bd36081884dbd00892e50a5e8a9 100644 (file)
@@ -1638,7 +1638,7 @@ static void process_smb(struct smbd_server_connection *conn,
                /*
                 * NetBIOS session request, keepalive, etc.
                 */
-               reply_special((char *)inbuf);
+               reply_special(conn, (char *)inbuf);
                goto done;
        }
 
index 8ff50b4bee9a029ca75d25563cb6921e73566010..7bf11d71234d9beb5ba518cad9af3eee1323ca57 100644 (file)
@@ -495,13 +495,12 @@ static bool netbios_session_retarget(const char *name, int name_type)
  Reply to a (netbios-level) special message.
 ****************************************************************************/
 
-void reply_special(char *inbuf)
+void reply_special(struct smbd_server_connection *sconn, char *inbuf)
 {
        int msg_type = CVAL(inbuf,0);
        int msg_flags = CVAL(inbuf,1);
        fstring name1,name2;
        char name_type1, name_type2;
-       struct smbd_server_connection *sconn = smbd_server_conn;
 
        /*
         * We only really use 4 bytes of the outbuf, but for the smb_setlen