From a36472dd384e54374cc151cd4159f3786b4ec02b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 12 Apr 2009 11:59:18 +0200 Subject: Extract and print the server name type the client connects to --- source3/smbd/reply.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 3f9d5c5498..0f2d71eba5 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -416,7 +416,7 @@ void reply_special(char *inbuf) int msg_type = CVAL(inbuf,0); int msg_flags = CVAL(inbuf,1); fstring name1,name2; - char name_type = 0; + char name_type1, name_type2; /* * We only really use 4 bytes of the outbuf, but for the smb_setlen @@ -445,19 +445,19 @@ void reply_special(char *inbuf) DEBUG(0,("Invalid name length in session request\n")); return; } - name_extract(inbuf,4,name1); - name_type = name_extract(inbuf,4 + name_len(inbuf + 4),name2); - DEBUG(2,("netbios connect: name1=%s name2=%s\n", - name1,name2)); + name_type1 = name_extract(inbuf,4,name1); + name_type2 = name_extract(inbuf,4 + name_len(inbuf + 4),name2); + DEBUG(2,("netbios connect: name1=%s0x%x name2=%s0x%x\n", + name1, name_type1, name2, name_type2)); set_local_machine_name(name1, True); set_remote_machine_name(name2, True); DEBUG(2,("netbios connect: local=%s remote=%s, name type = %x\n", get_local_machine_name(), get_remote_machine_name(), - name_type)); + name_type2)); - if (name_type == 'R') { + if (name_type2 == 'R') { /* We are being asked for a pathworks session --- no thanks! */ SCVAL(outbuf, 0,0x83); -- cgit