svn commit: samba r25272 - in branches: SAMBA_3_2/source/winbindd SAMBA_3_2_0/source/winbindd

obnox at samba.org obnox at samba.org
Fri Sep 21 09:52:29 GMT 2007


Author: obnox
Date: 2007-09-21 09:52:28 +0000 (Fri, 21 Sep 2007)
New Revision: 25272

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

Log:
Fix a bunch of callers of pull_ucs2 that passed -1 for dest_len.

Michael


Modified:
   branches/SAMBA_3_2/source/winbindd/winbindd_pam.c
   branches/SAMBA_3_2_0/source/winbindd/winbindd_pam.c


Changeset:
Modified: branches/SAMBA_3_2/source/winbindd/winbindd_pam.c
===================================================================
--- branches/SAMBA_3_2/source/winbindd/winbindd_pam.c	2007-09-21 09:37:40 UTC (rev 25271)
+++ branches/SAMBA_3_2/source/winbindd/winbindd_pam.c	2007-09-21 09:52:28 UTC (rev 25272)
@@ -61,22 +61,22 @@
 	state->response.data.auth.info3.num_other_sids = info3->num_other_sids;
 
 	unistr2_to_ascii(state->response.data.auth.info3.user_name, 
-		&info3->uni_user_name, -1);
+		&info3->uni_user_name, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.full_name, 
-		&info3->uni_full_name, -1);
+		&info3->uni_full_name, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.logon_script, 
-		&info3->uni_logon_script, -1);
+		&info3->uni_logon_script, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.profile_path, 
-		&info3->uni_profile_path, -1);
+		&info3->uni_profile_path, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.home_dir, 
-		&info3->uni_home_dir, -1);
+		&info3->uni_home_dir, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.dir_drive, 
-		&info3->uni_dir_drive, -1);
+		&info3->uni_dir_drive, sizeof(fstring));
 
 	unistr2_to_ascii(state->response.data.auth.info3.logon_srv, 
-		&info3->uni_logon_srv, -1);
+		&info3->uni_logon_srv, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.logon_dom, 
-		&info3->uni_logon_dom, -1);
+		&info3->uni_logon_dom, sizeof(fstring));
 
 	return NT_STATUS_OK;
 }

Modified: branches/SAMBA_3_2_0/source/winbindd/winbindd_pam.c
===================================================================
--- branches/SAMBA_3_2_0/source/winbindd/winbindd_pam.c	2007-09-21 09:37:40 UTC (rev 25271)
+++ branches/SAMBA_3_2_0/source/winbindd/winbindd_pam.c	2007-09-21 09:52:28 UTC (rev 25272)
@@ -61,22 +61,22 @@
 	state->response.data.auth.info3.num_other_sids = info3->num_other_sids;
 
 	unistr2_to_ascii(state->response.data.auth.info3.user_name, 
-		&info3->uni_user_name, -1);
+		&info3->uni_user_name, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.full_name, 
-		&info3->uni_full_name, -1);
+		&info3->uni_full_name, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.logon_script, 
-		&info3->uni_logon_script, -1);
+		&info3->uni_logon_script, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.profile_path, 
-		&info3->uni_profile_path, -1);
+		&info3->uni_profile_path, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.home_dir, 
-		&info3->uni_home_dir, -1);
+		&info3->uni_home_dir, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.dir_drive, 
-		&info3->uni_dir_drive, -1);
+		&info3->uni_dir_drive, sizeof(fstring));
 
 	unistr2_to_ascii(state->response.data.auth.info3.logon_srv, 
-		&info3->uni_logon_srv, -1);
+		&info3->uni_logon_srv, sizeof(fstring));
 	unistr2_to_ascii(state->response.data.auth.info3.logon_dom, 
-		&info3->uni_logon_dom, -1);
+		&info3->uni_logon_dom, sizeof(fstring));
 
 	return NT_STATUS_OK;
 }



More information about the samba-cvs mailing list