myldap.c: Type mismatch
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
myldap.c: Type mismatch
- From: Jan Schampera <jan.schampera [at] web.de>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Reply-to: jan.schampera [at] web.de
- Subject: myldap.c: Type mismatch
- Date: Mon, 25 Jan 2010 18:09:48 +0100
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
- myldap.c: Type mismatch,
Jan Schampera