Skip to content

Commit

Permalink
fix segfault in MatchCertificateAttribute config parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Apr 28, 2021
1 parent 5cb2294 commit 3d8e53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ int confclient_cb(struct gconffile **cf, void *arg, char *block, char *opt, char
"secret", CONF_STR_NOESC, &conf->confsecret,
#if defined(RADPROT_TLS) || defined(RADPROT_DTLS)
"tls", CONF_STR, &conf->tls,
"matchcertificateattribute", CONF_MSTR, &matchcertattrs,
"MatchCertificateAttribute", CONF_MSTR, &matchcertattrs,
"CertificateNameCheck", CONF_BLN, &conf->certnamecheck,
#endif
"DuplicateInterval", CONF_LINT, &dupinterval,
Expand Down Expand Up @@ -2560,7 +2560,7 @@ int confserver_cb(struct gconffile **cf, void *arg, char *block, char *opt, char
"secret", CONF_STR_NOESC, &conf->confsecret,
#if defined(RADPROT_TLS) || defined(RADPROT_DTLS)
"tls", CONF_STR, &conf->tls,
"MatchCertificateAttribute", CONF_STR, &conf->confmatchcertattrs,
"MatchCertificateAttribute", CONF_MSTR, &conf->confmatchcertattrs,
"CertificateNameCheck", CONF_BLN, &conf->certnamecheck,
#endif
"addTTL", CONF_LINT, &addttl,
Expand Down

0 comments on commit 3d8e53c

Please sign in to comment.