Hi,all,

I found a bug that vpasswd can't change password
when I compiled with enable-ldap=y.

vpasswd say "null pointer".


I made the patch for the bug.

-----------------------------------------------------------------------
--- vldap.c.orig        Sat Apr  6 23:30:32 2002
+++ vldap.c     Thu Aug 29 09:38:55 2002
@@ -286,6 +286,11 @@
        ldap_value_free(vals);
   }

+  /* for pw_clear_passwd */
+  vpw.pw_clear_passwd = (char *)malloc((strlen(" ") + 1));
+  memset((char *)vpw.pw_clear_passwd, 0, (strlen(" ") + 1));
+  memcpy((char *)vpw.pw_clear_passwd, (char *)(" "), strlen(" "));
+
   return(&vpw);
 }
 void vauth_end_getall()
------------------------------------------------------------------------


---
Sunagawa Koji    [EMAIL PROTECTED]    
     Okinawa FreeBSD Users Group  http://www.ofug.net/~koj/

Reply via email to