Browse Source

* oal_check_cred : fix error message

master
Alex 'AdUser' Z 9 years ago
parent
commit
a9a50e2cd6
  1. 2
      src/ldapauth.c

2
src/ldapauth.c

@ -149,7 +149,7 @@ oal_check_cred(oal_config_t * const config,
lrc = ldap_search_s(sld, config->basedn, LDAP_SCOPE_SUBTREE, config->userfilter, searchattr, 1, &res);
if (lrc != LDAP_SUCCESS) {
snprintf(config->error, sizeof(config->error), "ldap search failed: %s", ldap_err2string(rc));
snprintf(config->error, sizeof(config->error), "ldap search failed: %s", ldap_err2string(lrc));
goto cleanup; /* TODO */
}

Loading…
Cancel
Save