From 6b6c4ea24268f0422ec5c37e4dd76f653a04da87 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 20 Dec 2012 17:11:30 +0000 Subject: 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 --- nslcd/myldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nslcd/myldap.c') 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, -- cgit v1.2.3