diff options
Diffstat (limited to 'vendor/git.zero-knowledge.org')
| -rw-r--r-- | vendor/git.zero-knowledge.org/gibheer/pki/certificate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/git.zero-knowledge.org/gibheer/pki/certificate.go b/vendor/git.zero-knowledge.org/gibheer/pki/certificate.go index b90e9fa..9203e57 100644 --- a/vendor/git.zero-knowledge.org/gibheer/pki/certificate.go +++ b/vendor/git.zero-knowledge.org/gibheer/pki/certificate.go @@ -127,7 +127,7 @@ func (c *CertificateRequest) ToCertificate(private_key PrivateKey, if cert_opts.IsCA { template.BasicConstraintsValid = true } - if cert_opts.CALength >= 0 { + if cert_opts.CALength > 0 { template.MaxPathLen = cert_opts.CALength template.MaxPathLenZero = true template.BasicConstraintsValid = true |
