1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

tls: Fix panic loading automation management modules (fix #3004)

When AutomationPolicy was turned into a pointer, we continued passing
a double pointer to LoadModule, oops.
This commit is contained in:
Matthew Holt 2020-02-18 09:54:14 -07:00
parent 57c6f22684
commit 87a742c1e5
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -89,7 +89,7 @@ func (t *TLS) Provision(ctx caddy.Context) error {
// automation/management policies
if t.Automation != nil {
for i, ap := range t.Automation.Policies {
val, err := ctx.LoadModule(&ap, "ManagementRaw")
val, err := ctx.LoadModule(ap, "ManagementRaw")
if err != nil {
return fmt.Errorf("loading TLS automation management module: %s", err)
}