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:
@@ -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,
|
static authn_status authn_ldap_check_password(request_rec *r, const char *user,
|
||||||
const char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
int failures = 0;
|
|
||||||
char filtbuf[FILTER_LENGTH];
|
char filtbuf[FILTER_LENGTH];
|
||||||
authn_ldap_config_t *sec =
|
authn_ldap_config_t *sec =
|
||||||
(authn_ldap_config_t *)ap_get_module_config(r->per_dir_config, &authnz_ldap_module);
|
(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;
|
return AUTH_GENERAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
start_over:
|
|
||||||
|
|
||||||
/* There is a good AuthLDAPURL, right? */
|
/* There is a good AuthLDAPURL, right? */
|
||||||
if (sec->host) {
|
if (sec->host) {
|
||||||
const char *binddn = sec->binddn;
|
const char *binddn = sec->binddn;
|
||||||
|
@@ -2684,7 +2684,7 @@ static const char *util_ldap_set_retries(cmd_parms *cmd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
st->retries = atoi(val);
|
st->retries = atoi(val);
|
||||||
if (val < 0) {
|
if (st->retries < 0) {
|
||||||
return "LDAPRetries must be >= 0";
|
return "LDAPRetries must be >= 0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user