Skip to content

Commit

Permalink
Merge pull request #31 from mproffitt/main
Browse files Browse the repository at this point in the history
Fix segmentation fault in cidrsubnets function
  • Loading branch information
humoflife authored May 26, 2024
2 parents a1d3d3b + 0946b46 commit fe95f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
return rsp, nil
}
}
cidrs, cidrSubnetsErr := CidrSubnets(prefix, newBits...)
if cidrSubnetsErr != nil {
cidrs, err := CidrSubnets(prefix, newBits...)
if err != nil {
response.Fatal(rsp, errors.Wrapf(err, "cannot calculate Subnet CIDRs for %s", oxr.Resource.GetKind()))
return rsp, nil
}
Expand Down

0 comments on commit fe95f53

Please sign in to comment.