[BUG] using unreference variable in ldap.c
Samba-JP TAKAHASHI Motonobu
monyo at samba.gr.jp
Mon Jun 11 16:18:09 GMT 2001
Hello all,
We found a bug to use unreferenced variable in ldap.c
Followed patches is fix this problem for 2.0.9/2.2 and HEAD.
Regards,
---- Cut Here ---- For 2.0.9/2.2 ----
diff -ur ../samba-2.0.9-ja-1.1alpha2/source/passdb/ldap.c
./source/passdb/ldap.c
--- ../samba-2.0.9-ja-1.1alpha2/source/passdb/ldap.c Fri May 4
04:11:43 2001
+++ ./source/passdb/ldap.c Thu Apr 12 16:28:56 2001
@@ -277,7 +277,6 @@
static void ldap_get_sam_passwd(LDAP *ldap_struct, LDAPMessage
*entry,
struct sam_passwd *user)
{
- static pstring user_name;
static pstring fullname;
static pstring home_dir;
static pstring dir_drive;
@@ -314,7 +313,7 @@
user->smb_name = pw_buf.smb_name;
- DEBUG(2,("ldap_get_sam_passwd: user: %s\n", user_name));
+ DEBUG(2,("ldap_get_sam_passwd: user: %s\n", user->smb_name));
get_single_attribute(ldap_struct, entry, "userFullName",
fullname);
user->full_name = fullname;
---- Cut Here ----
-----
TAKAHASHI Motonobu mailto:monyo at samba.gr.jp
Samba Users Group Japan http://www.samba.gr.jp/
More information about the samba-technical
mailing list