outposts/ldap: only use common cert if cert is configured, correctly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-28 21:29:36 +01:00
parent 2d03bd5c89
commit 39424839c5
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func (ls *LDAPServer) getCertificates(info *tls.ClientHelloInfo) (*tls.Certifica
}
return provider.cert, nil
}
if provider.certUUID != ls.providers[0].certUUID && provider.cert != nil {
if provider.certUUID != ls.providers[0].certUUID || provider.cert == nil {
allIdenticalCerts = false
}
}