summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-12 11:50:56 +0200
committerVolker Lendecke <vl@samba.org>2010-06-12 15:42:52 +0200
commitd5f20aea73de38d0536b7ec3fa6b425bf3fdde34 (patch)
tree9ec20fa4f261d2fc7451f4c8dbcdaed2edfd7728 /source3/smbd
parent7223799b6eb37d7d9e686ec75454ece7f02a9e17 (diff)
downloadsamba-d5f20aea73de38d0536b7ec3fa6b425bf3fdde34.tar.gz
samba-d5f20aea73de38d0536b7ec3fa6b425bf3fdde34.tar.bz2
samba-d5f20aea73de38d0536b7ec3fa6b425bf3fdde34.zip
s3: Pass sconn explicitly to reply_special
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/reply.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 6b48d96ffa..629465cc83 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -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;
}
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 8ff50b4bee..7bf11d7123 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -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