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 f4e9e33..109944c 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                                            },