1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Compare value instead of string pointer

Remove unused label
Remove unused var


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1157357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2011-08-13 09:14:33 +00:00
parent 84a104bb22
commit f19641462b
2 changed files with 1 additions and 4 deletions

View File

@@ -451,7 +451,6 @@ static util_ldap_connection_t *get_connection_for_authz(request_rec *r, enum aut
static authn_status authn_ldap_check_password(request_rec *r, const char *user,
const char *password)
{
int failures = 0;
char filtbuf[FILTER_LENGTH];
authn_ldap_config_t *sec =
(authn_ldap_config_t *)ap_get_module_config(r->per_dir_config, &authnz_ldap_module);
@@ -479,8 +478,6 @@ static authn_status authn_ldap_check_password(request_rec *r, const char *user,
return AUTH_GENERAL_ERROR;
}
start_over:
/* There is a good AuthLDAPURL, right? */
if (sec->host) {
const char *binddn = sec->binddn;

View File

@@ -2684,7 +2684,7 @@ static const char *util_ldap_set_retries(cmd_parms *cmd,
}
st->retries = atoi(val);
if (val < 0) {
if (st->retries < 0) {
return "LDAPRetries must be >= 0";
}