Skip to content

Commit 4381b66

Browse files
committed
Fix nil pointer issue in Manager's issueLetsEncryptCert function
1 parent 8c33cba commit 4381b66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

certy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ var issuings = make(map[string]bool)
187187

188188
// issueLetsEncryptCert is a function for issuing letsencrypt certificate
189189
func (m *Manager) issueLetsEncryptCert(email, domain, location string) {
190+
if m == nil {
191+
log.Println("Manager is nil")
192+
return
193+
}
190194

191195
// check location is exists or not if not create it
192196
if _, err := os.Stat(location); os.IsNotExist(err) {

0 commit comments

Comments
 (0)