summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-09-08 06:35:48 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-09-08 06:35:48 +0000
commitb517f3e227e1946c24804c540c1499aed0b2b9f3 (patch)
tree6941bee8ccac72ff5ede8f6b7a277866f48346cc
parent6b484fc2f24467d6773e7a186d11aa7c27239999 (diff)
make all regexps extended
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@362 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-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);