Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/myldap.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-12-20 18:11:30 +0100
committerArthur de Jong <arthur@arthurdejong.org>2012-12-20 18:11:30 +0100
commit6b6c4ea24268f0422ec5c37e4dd76f653a04da87 (patch)
tree08f732aec43e91aa73b573ce39392de9e7074e88 /nslcd/myldap.c
parent36bb4fac606f98dd97d9d0e72dee42d776fb72c3 (diff)
fix logic error (use && instead of & for logical and)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1868 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/myldap.c')
-rw-r--r--nslcd/myldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index afbb5e9..3cc9da5 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -433,7 +433,7 @@ static int do_bind(LDAP *ld,const char *binddn,const char *bindpw,const char *ur
}
#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,