lists.arthurdejong.org
RSS feed

myldap.c: Type mismatch

[Date Prev][Date Next] [Thread Prev][Thread Next]

myldap.c: Type mismatch



Ole...

nslcd/myldap.c:1609, setting the ber struct for old password, password
length zero value, wrong type (bv_len is ber_len_t, which is unsigned
integer, assigned is a NULL pointer).

Simple patch attached.

Regards,
TheBonsai


--- nss-pam-ldapd/nslcd/myldap.c	2010-01-24 14:36:59.000000000 +0100
+++ nss-pam-ldapd.new/nslcd/myldap.c	2010-01-25 19:04:50.000000000 +0100
@@ -1606,7 +1606,7 @@
   ber_userdn.bv_val=(char *)userdn;
   ber_userdn.bv_len=strlen(userdn);
   ber_oldpassword.bv_val=(char *)oldpassword;
-  ber_oldpassword.bv_len=oldpassword?strlen(oldpassword):NULL;
+  ber_oldpassword.bv_len=oldpassword?strlen(oldpassword):0;
   ber_newpassword.bv_val=(char *)newpasswd;
   ber_newpassword.bv_len=strlen(newpasswd);
   ber_retpassword.bv_val=NULL;
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users