summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--radsecproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index a26fdfa..c706935 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2590,7 +2590,7 @@ struct realm *addrealm(struct list *realmlist, char *value, char **servers, char
realm->message = message;
realm->accresp = accresp;
- if (regcomp(&realm->regex, regex ? regex : value + 1, REG_ICASE | REG_NOSUB)) {
+ if (regcomp(&realm->regex, regex ? regex : value + 1, REG_EXTENDED | REG_ICASE | REG_NOSUB)) {
debug(DBG_ERR, "addrealm: failed to compile regular expression %s", regex ? regex : value + 1);
goto errexit;
}
@@ -2796,7 +2796,7 @@ int addmatchcertattr(struct clsrvconf *conf) {
debug(DBG_ERR, "malloc failed");
return 0;
}
- if (regcomp(*r, v, REG_ICASE | REG_NOSUB)) {
+ if (regcomp(*r, v, REG_EXTENDED | REG_ICASE | REG_NOSUB)) {
free(*r);
*r = NULL;
debug(DBG_ERR, "failed to compile regular expression %s", v);