Skip to content

Commit

Permalink
The delimiter can be \\, too
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 21, 2014
1 parent 5b1b8fd commit 93a8cc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/rlm_realm/rlm_realm.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
return -1;
}

if (cf_new_escape && (strcmp(inst->delim, "\\\\") == 0)) {
/* it's OK */
} else

if (strlen(inst->delim) != 1) {
cf_log_err_cs(conf, "Invalid value \"%s\" for delimiter",
inst->delim);
Expand Down

0 comments on commit 93a8cc1

Please sign in to comment.