summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-09-28 13:11:08 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-09-28 13:11:08 +0000
commit43d9e426bd3f976715c0f8843db0e686f174b7cd (patch)
tree7a9aa4608dd7795584b3bc49e63b00fd1bc6b635
parent36da594539ae96a43aebb2815f6a521c8103f5cb (diff)
wrong free when certuriregex fails to compile, fixed but harmless
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@173 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 5c9df20..5f51d10 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2140,7 +2140,7 @@ int addmatchcertattr(struct peer *conf, char *matchcertattr) {
return 0;
}
if (regcomp(conf->certuriregex, v, REG_ICASE | REG_NOSUB)) {
- regfree(conf->certuriregex);
+ free(conf->certuriregex);
conf->certuriregex = NULL;
debug(DBG_ERR, "failed to compile regular expression %s", v);
return 0;