mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed scoping issue with certPool variable (#6261)
This commit is contained in:
@@ -30,7 +30,7 @@ func (a *ldapAuther) Dial() error {
|
|||||||
var err error
|
var err error
|
||||||
var certPool *x509.CertPool
|
var certPool *x509.CertPool
|
||||||
if a.server.RootCACert != "" {
|
if a.server.RootCACert != "" {
|
||||||
certPool := x509.NewCertPool()
|
certPool = x509.NewCertPool()
|
||||||
for _, caCertFile := range strings.Split(a.server.RootCACert, " ") {
|
for _, caCertFile := range strings.Split(a.server.RootCACert, " ") {
|
||||||
if pem, err := ioutil.ReadFile(caCertFile); err != nil {
|
if pem, err := ioutil.ReadFile(caCertFile); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user