lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1869 - in nss-pam-ldapd-0.8: . nslcd

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

nss-pam-ldapd commit: r1869 - in nss-pam-ldapd-0.8: . nslcd



Author: arthur
Date: Thu Dec 20 18:14:07 2012
New Revision: 1869
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1869&view=revision

Log:
fix logic error (use && instead of & for logical and) (r1868 from trunk)

Modified:
   nss-pam-ldapd-0.8/   (props changed)
   nss-pam-ldapd-0.8/nslcd/myldap.c

Modified: nss-pam-ldapd-0.8/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd-0.8/nslcd/myldap.c    Thu Dec 20 18:11:30 2012        (r1868)
+++ nss-pam-ldapd-0.8/nslcd/myldap.c    Thu Dec 20 18:14:07 2012        (r1869)
@@ -433,7 +433,7 @@
   }
 #endif /* LDAP_OPT_X_TLS */
   /* check if the binddn and bindpw are overwritten in the session */
-  if ((binddn!=NULL)&(binddn[0]!='\0'))
+  if ((binddn!=NULL)&&(binddn[0]!='\0'))
   {
     /* do a simple bind */
     log_log(LOG_DEBUG,"ldap_simple_bind_s(\"%s\",%s) (uri=\"%s\")",binddn,
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/