@marcel91200 / caddy Mirror · read-only / commits / fb5168d3
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

http_ntlm: fix panic due to unintialized embedded field (#3120)

Mohammed Al Sahaf committed Mar 8, 2020 at 03:58 UTC fb5168d3b42a368925dad05b9678837990416260
1 file changed +6 -2
modules/caddyhttp/reverseproxy/ntlm.go
+6 -2
@@ -60,8 +60,12 @@ type NTLMTransport struct {
60 // CaddyModule returns the Caddy module information.
61 func (NTLMTransport) CaddyModule() caddy.ModuleInfo {
62 return caddy.ModuleInfo{
63 - ID: "http.reverse_proxy.transport.http_ntlm",
64 - New: func() caddy.Module { return new(NTLMTransport) },
63 + ID: "http.reverse_proxy.transport.http_ntlm",
64 + New: func() caddy.Module {
65 + m := new(NTLMTransport)
66 + m.HTTPTransport = new(HTTPTransport)
67 + return m
68 + },
69 }
70 }
71