diff options
author | Mohammed Al Sahaf <[email protected]> | 2020-03-08 03:58:44 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-07 17:58:44 -0700 |
commit | fb5168d3b42a368925dad05b9678837990416260 (patch) | |
tree | 9a76434f25bfe9af036d35aefd9d794f2a1256d3 | |
parent | 217419f6d97885daf0fb8832a407626e578523f0 (diff) | |
download | caddy-fb5168d3b42a368925dad05b9678837990416260.tar.gz caddy-fb5168d3b42a368925dad05b9678837990416260.zip |
http_ntlm: fix panic due to unintialized embedded field (#3120)
-rw-r--r-- | modules/caddyhttp/reverseproxy/ntlm.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/caddyhttp/reverseproxy/ntlm.go b/modules/caddyhttp/reverseproxy/ntlm.go index be4330f9b..270135a96 100644 --- a/modules/caddyhttp/reverseproxy/ntlm.go +++ b/modules/caddyhttp/reverseproxy/ntlm.go @@ -60,8 +60,12 @@ type NTLMTransport struct { // CaddyModule returns the Caddy module information. func (NTLMTransport) CaddyModule() caddy.ModuleInfo { return caddy.ModuleInfo{ - ID: "http.reverse_proxy.transport.http_ntlm", - New: func() caddy.Module { return new(NTLMTransport) }, + ID: "http.reverse_proxy.transport.http_ntlm", + New: func() caddy.Module { + m := new(NTLMTransport) + m.HTTPTransport = new(HTTPTransport) + return m + }, } } |