summaryrefslogtreecommitdiffstats
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-06-11 12:55:24 +0200
committerMichael Adam <obnox@samba.org>2014-08-06 09:51:13 +0200
commit6e514e695a69fff10942893d2e85b7601ec2c9b0 (patch)
tree8ca2cf937562dda20927afd634230b9ce5c08544 /source3/smbd/reply.c
parent628af0e0ad8cfb9b34e80f7c9c59ffdd8685d31f (diff)
downloadsamba-6e514e695a69fff10942893d2e85b7601ec2c9b0.tar.gz
samba-6e514e695a69fff10942893d2e85b7601ec2c9b0.tar.xz
samba-6e514e695a69fff10942893d2e85b7601ec2c9b0.zip
s3:smbd: pass smbXsrv_connection to netbios_session_retarget()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index e8b1038175..9722307f53 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -428,10 +428,10 @@ bool check_fsp_ntquota_handle(connection_struct *conn, struct smb_request *req,
return true;
}
-static bool netbios_session_retarget(struct smbd_server_connection *sconn,
+static bool netbios_session_retarget(struct smbXsrv_connection *xconn,
const char *name, int name_type)
{
- struct smbXsrv_connection *xconn = sconn->conn;
+ struct smbd_server_connection *sconn = xconn->sconn;
char *trim_name;
char *trim_name_type;
const char *retarget_parm;
@@ -593,7 +593,7 @@ void reply_special(struct smbXsrv_connection *xconn, char *inbuf, size_t inbuf_s
DEBUG(2,("netbios connect: name1=%s0x%x name2=%s0x%x\n",
name1, name_type1, name2, name_type2));
- if (netbios_session_retarget(sconn, name1, name_type1)) {
+ if (netbios_session_retarget(xconn, name1, name_type1)) {
exit_server_cleanly("retargeted client");
}