]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Fixed crash when parsing cert_policy parameter
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 22 Jun 2018 06:52:09 +0000 (08:52 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 22 Jun 2018 06:52:09 +0000 (08:52 +0200)
src/libcharon/plugins/vici/vici_config.c

index f4e9e33eef867d5419084a4459ae6de90cdaedb3..109944c160171df11bf3b489d629d494a4d6a349 100644 (file)
@@ -1604,7 +1604,7 @@ CALLBACK(auth_li, bool,
 {
        parse_rule_t rules[] = {
                { "groups",                     parse_group,            auth->cfg                                       },
-               { "cert_policy",        parse_cert_policy,      auth                                            },
+               { "cert_policy",        parse_cert_policy,      auth->cfg                                       },
                { "certs",                      parse_certs,            auth                                            },
                { "cacerts",            parse_cacerts,          auth                                            },
                { "pubkeys",            parse_pubkeys,          auth                                            },