summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 8bccae4..8011797 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2736,10 +2736,10 @@ int addmatchcertattr(struct clsrvconf *conf, char *matchcertattr) {
char *v;
regex_t **r;
- if (strncasecmp(matchcertattr, "CN:/", 4)) {
+ if (!strncasecmp(matchcertattr, "CN:/", 4)) {
r = &conf->certcnregex;
v = matchcertattr + 4;
- } else if (strncasecmp(matchcertattr, "SubjectAltName:URI:/", 20)) {
+ } else if (!strncasecmp(matchcertattr, "SubjectAltName:URI:/", 20)) {
r = &conf->certuriregex;
v = matchcertattr + 20;
} else