svn commit: samba r18966 - in branches/SAMBA_3_0/source/libsmb: .

tridge at samba.org tridge at samba.org
Wed Sep 27 23:31:54 GMT 2006


Author: tridge
Date: 2006-09-27 23:31:53 +0000 (Wed, 27 Sep 2006)
New Revision: 18966

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18966

Log:

this bug affects Samba3 too. I'm actually surprised nobody has
reported that Samba3 on Solaris Sparc with the native compiler can't
join Windows domains. If it worked we were just lucky. I suspect it
just didn't work.

Modified:
   branches/SAMBA_3_0/source/libsmb/smbencrypt.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/smbencrypt.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/smbencrypt.c	2006-09-27 23:24:36 UTC (rev 18965)
+++ branches/SAMBA_3_0/source/libsmb/smbencrypt.c	2006-09-27 23:31:53 UTC (rev 18966)
@@ -496,6 +496,9 @@
 	uchar new_pw[512];
 	size_t new_pw_len;
 
+	/* the incoming buffer can be any alignment. */
+	string_flags |= STR_NOALIGN;
+
 	new_pw_len = push_string(NULL, new_pw,
 				 password, 
 				 sizeof(new_pw), string_flags);
@@ -526,6 +529,9 @@
 {
 	int byte_len=0;
 
+	/* the incoming buffer can be any alignment. */
+	string_flags |= STR_NOALIGN;
+
 	/*
 	  Warning !!! : This function is called from some rpc call.
 	  The password IN the buffer may be a UNICODE string.



More information about the samba-cvs mailing list