Skip to content

Commit e74e13a

Browse files
authored
Fix nil pointer dereference in CheckSslProfiles (skupperproject#2147)
Signed-off-by: Christian Kruse <christian@c-kruse.com>
1 parent 3fc2c5e commit e74e13a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/kube/site/site.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ func (s *Site) updateLinkOperationalCondition(link *skupperv2alpha1.Link, operat
10911091
}
10921092

10931093
func (s *Site) CheckSslProfiles(config *qdr.RouterConfig) error {
1094-
if !s.initialised {
1094+
if !s.initialised || config == nil {
10951095
return nil
10961096
}
10971097
s.profiles.UseProfiles(config.SslProfiles)

0 commit comments

Comments
 (0)