return AUTH_USER_NOT_FOUND;
}
- colon_pw = strchr(dbm_password, ':');
+ colon_pw = ap_strchr(dbm_password, ':');
if (colon_pw) {
*colon_pw = '\0';
}
return AUTH_USER_NOT_FOUND;
}
- colon_hash = strchr(dbm_hash, ':');
+ colon_hash = ap_strchr(dbm_hash, ':');
if (colon_hash) {
*colon_hash = '\0';
}
char *dbmgrpfile, char *dbtype,
const char ** out)
{
- char *grp_colon;
+ char *grp_colon, *val;
apr_status_t retval;
apr_dbm_t *f;
}
/* Try key2 only if key1 failed */
- if (!(*out = get_dbm_entry_as_str(r->pool, f, key1))) {
- *out = get_dbm_entry_as_str(r->pool, f, key2);
+ if (!(val = get_dbm_entry_as_str(r->pool, f, key1))) {
+ val = get_dbm_entry_as_str(r->pool, f, key2);
}
apr_dbm_close(f);
- if (*out && (grp_colon = strchr(*out, ':')) != NULL) {
- char *grp_colon2 = strchr(++grp_colon, ':');
+ if (val && (grp_colon = ap_strchr(val, ':')) != NULL) {
+ char *grp_colon2 = ap_strchr(++grp_colon, ':');
if (grp_colon2) {
*grp_colon2 = '\0';
}
*out = grp_colon;
}
+ else {
+ *out = val;
+ }
return retval;
}
else if (!strcasecmp(where, "all")) {
a->type = T_ALL;
}
- else if ((s = strchr(where, '/'))) {
+ else if ((s = ap_strchr(where, '/'))) {
*s++ = '\0';
rv = apr_ipsubnet_create(&a->x.ip, where, s, cmd->pool);
if(APR_STATUS_IS_EINVAL(rv)) {