Skip to content

Commit fe95f53

Browse files
authored
Merge pull request #31 from mproffitt/main
Fix segmentation fault in cidrsubnets function
2 parents a1d3d3b + 0946b46 commit fe95f53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
177177
return rsp, nil
178178
}
179179
}
180-
cidrs, cidrSubnetsErr := CidrSubnets(prefix, newBits...)
181-
if cidrSubnetsErr != nil {
180+
cidrs, err := CidrSubnets(prefix, newBits...)
181+
if err != nil {
182182
response.Fatal(rsp, errors.Wrapf(err, "cannot calculate Subnet CIDRs for %s", oxr.Resource.GetKind()))
183183
return rsp, nil
184184
}

0 commit comments

Comments
 (0)