diff options
| author | qinguoyi <1532979219@qq.com> | 2024-08-03 02:06:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-02 11:06:48 -0700 |
| commit | bf2366ba3aba55926779c7804849273d7ff376b7 (patch) | |
| tree | d6c2d954123c2fc4f42242974d842f5e7539a531 /weed/command/filer.go | |
| parent | e88da0be1b6ae1cc78743128f70c7e07cd49ebdd (diff) | |
| download | seaweedfs-bf2366ba3aba55926779c7804849273d7ff376b7.tar.xz seaweedfs-bf2366ba3aba55926779c7804849273d7ff376b7.zip | |
Fix KeyMaterial nil bug (#5849)
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index 77e312646..b7f67ea3b 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -240,6 +240,9 @@ func runFiler(cmd *Command, args []string) bool { // GetCertificateWithUpdate Auto refreshing TSL certificate func (fo *FilerOptions) GetCertificateWithUpdate(*tls.ClientHelloInfo) (*tls.Certificate, error) { certs, err := fo.certProvider.KeyMaterial(context.Background()) + if certs == nil { + return nil, err + } return &certs.Certs[0], err } |
