bugfix/SAST-fixes-support-v0.29 #108

Merged
alexvanin merged 4 commits from dkirillov/frostfs-http-gw:bugfix/SAST-fixes-support-v0.29 into support/v0.29 2024-09-04 19:50:57 +00:00
Showing only changes of commit 602d3add66 - Show all commits

View file

@ -68,7 +68,8 @@ func newServer(ctx context.Context, serverInfo ServerInfo) (*server, error) {
if serverInfo.TLS.Enabled {
if err = tlsProvider.UpdateCert(serverInfo.TLS.CertFile, serverInfo.TLS.KeyFile); err != nil {
return nil, fmt.Errorf("failed to update cert: %w", err)
lnErr := ln.Close()
return nil, fmt.Errorf("failed to update cert (listener close: %v): %w", lnErr, err)
}
ln = tls.NewListener(ln, &tls.Config{