Skip to content

Commit 6ea632f

Browse files
committed
GODRIVER-558 Don't set SSLCaFileSet on empty CaFile
Change-Id: I37a7c26136c84384612714aac2fd64b94fc03d72
1 parent ac85d3e commit 6ea632f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/clientopt/clientopt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ func SSL(ssl *SSLOpt) Option {
627627
c.ConnString.SSLInsecure = ssl.Insecure
628628
c.ConnString.SSLInsecureSet = true
629629
}
630-
if !c.ConnString.SSLCaFileSet {
630+
if !c.ConnString.SSLCaFileSet && ssl.CaFile != "" {
631631
c.ConnString.SSLCaFile = ssl.CaFile
632632
c.ConnString.SSLCaFileSet = true
633633
}

0 commit comments

Comments
 (0)