Browse Source

call to ldap_unbind is necessary to free memory even when ldap_bind failed.

release0.1.5
Georg Hopp 12 years ago
parent
commit
8a7cada52c
  1. 3
      src/auth/ldap.c

3
src/auth/ldap.c

@ -105,8 +105,9 @@ authLdapAuthenticate(void * _this, Credential cred)
NULL,
&ldap_servcred);
ldap_unbind_ext_s(this->ldap, NULL, NULL);
if (0 == ldap_err) {
ldap_unbind_ext_s(this->ldap, NULL, NULL);
//! \todo here we need to get and return the user id
return TRUE;
}

Loading…
Cancel
Save