Skip to content

Commit

Permalink
fix nil pointer dereference (#3951)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
  • Loading branch information
zhangzujian committed Apr 25, 2024
1 parent 7210674 commit bfe8033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CVE-2020-8559
2 changes: 2 additions & 0 deletions pkg/controller/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ func (c *Controller) handleAddOrUpdateVpc(key string) error {
klog.Error("failed to get node switch subnet %s: %v", c.config.NodeSwitch)
return err
}
c.addOrUpdateVpcQueue.Add(vpc.Name)
return nil
}
gatewayV4, gatewayV6 := util.SplitStringIP(joinSubnet.Spec.Gateway)
if gatewayV4 != "" {
Expand Down

0 comments on commit bfe8033

Please sign in to comment.