From 87a742c1e5d25129eb93f1be5fa52b5b6cdd8b06 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 18 Feb 2020 09:54:14 -0700 Subject: 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. --- modules/caddytls/tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddytls/tls.go') diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go index 7d80bfb..6be480a 100644 --- a/modules/caddytls/tls.go +++ b/modules/caddytls/tls.go @@ -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) } -- cgit v1.2.3