Only initialize the CA if the path is not an empty string.

pull/385/head
Sean Chittenden 2018-02-02 08:24:41 -08:00
parent 52bada3401
commit f0dc593c2f
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 1 additions and 1 deletions

View File

@ -929,7 +929,7 @@ func configTLS(args configTLSArgs, cc *ConnConfig) error {
return errors.New("sslmode is invalid")
}
{
if args.sslRootCert != "" {
caCertPool := x509.NewCertPool()
caPath := args.sslRootCert