svn commit: samba r18967 - in branches/SAMBA_3_0_23/source/libsmb: .

jra at samba.org jra at samba.org
Thu Sep 28 00:06:12 GMT 2006


Author: jra
Date: 2006-09-28 00:06:10 +0000 (Thu, 28 Sep 2006)
New Revision: 18967

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

Log:
Fix in case we do another 3.0.23 release.

>From tridge :

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_23/source/libsmb/smbencrypt.c


Changeset:
Modified: branches/SAMBA_3_0_23/source/libsmb/smbencrypt.c
===================================================================
--- branches/SAMBA_3_0_23/source/libsmb/smbencrypt.c	2006-09-27 23:31:53 UTC (rev 18966)
+++ branches/SAMBA_3_0_23/source/libsmb/smbencrypt.c	2006-09-28 00:06:10 UTC (rev 18967)
@@ -464,6 +464,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);
@@ -494,6 +497,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