From 60bfe3819eb92da021218987467b2ff101b094dd Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 9 Mar 1999 02:03:39 +0000 Subject: alignment issue in UDP SAMLOGON response. (This used to be commit de290627f06915d420d37d2a3ac2f736c4cf8d74) --- source3/nmbd/nmbd_processlogon.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/nmbd/nmbd_processlogon.c') diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c index 5b8e01f5d0..710bbe0de7 100644 --- a/source3/nmbd/nmbd_processlogon.c +++ b/source3/nmbd/nmbd_processlogon.c @@ -179,7 +179,9 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", q += 4; domainsidsize = IVAL(q, 0); q += 4; - q += domainsidsize + 3; + q += domainsidsize + 2; + q = align2(q, buf); + ntversion = IVAL(q, 0); q += 4; lmnttoken = SVAL(q, 0); @@ -187,7 +189,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", lm20token = SVAL(q, 0); q += 2; - DEBUG(3,("process_logon_packet: SAMLOGON sidsize %d ntv %d\n", domainsidsize, ntversion)); + DEBUG(3,("process_logon_packet: SAMLOGON sidsize %d ntv %x\n", domainsidsize, ntversion)); /* * we respond regadless of whether the machine is in our password @@ -198,7 +200,8 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", fstrcpy(reply_name,"\\\\"); /* Here it wants \\LOGONSERVER. */ fstrcpy(reply_name+2,my_name); - if (DEBUGLVL(3)) { + if (DEBUGLVL(3)) + { fstring ascuser; fstring asccomp; -- cgit