Nil check before logging (#207)
This commit is contained in:
parent
55fc6a9f76
commit
93fd493922
@ -652,7 +652,11 @@ func (cfg *Config) renewDynamicCertificate(ctx context.Context, hello *tls.Clien
|
||||
cfg.certCache.removeCertificate(currentCert)
|
||||
cfg.certCache.mu.Unlock()
|
||||
unblockWaiters()
|
||||
log.Error("certificate should not be obtained", zap.Error(err))
|
||||
|
||||
if log != nil {
|
||||
log.Error("certificate should not be obtained", zap.Error(err))
|
||||
}
|
||||
|
||||
return Certificate{}, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user