Browse Source
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.
master
Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
1 additions and
1 deletions
-
modules/caddytls/tls.go
|
@ -89,7 +89,7 @@ func (t *TLS) Provision(ctx caddy.Context) error { |
|
|
// automation/management policies
|
|
|
// automation/management policies
|
|
|
if t.Automation != nil { |
|
|
if t.Automation != nil { |
|
|
for i, ap := range t.Automation.Policies { |
|
|
for i, ap := range t.Automation.Policies { |
|
|
val, err := ctx.LoadModule(&ap, "ManagementRaw") |
|
|
val, err := ctx.LoadModule(ap, "ManagementRaw") |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return fmt.Errorf("loading TLS automation management module: %s", err) |
|
|
return fmt.Errorf("loading TLS automation management module: %s", err) |
|
|
} |
|
|
} |
|
|