(auth_config_rec *) ap_get_module_config(r->per_dir_config, &auth_module);
const char *sent_pw;
char *real_pw;
- char *invalid_pw;
+ ap_status_t invalid_pw;
int res;
if ((res = ap_get_basic_auth_pw(r, &sent_pw)))
return AUTH_REQUIRED;
}
invalid_pw = ap_validate_password(sent_pw, real_pw);
- if (invalid_pw != NULL) {
+ if (invalid_pw != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
- "user %s: authentication failure for \"%s\": %s",
- r->user, r->uri, invalid_pw);
+ "user %s: authentication failure for \"%s\": "
+ "Password Mismatch",
+ r->user, r->uri);
ap_note_basic_auth_failure(r);
return AUTH_REQUIRED;
}