In https://github.com/kolide/fleet/blob/master/server/service/client.go#L53 we use `errors.Wrap` inside a statement that returns only a `bool` error status. `errors.Wrap` returns `nil` if the provided error is `nil`. If execution has made it to this point, the `err` variable is certain to be `nil`. The function returns `nil, nil`, leading to a segfault later when the client is used.
In https://github.com/kolide/fleet/blob/master/server/service/client.go#L53 we use
errors.Wrapinside a statement that returns only aboolerror status.errors.Wrapreturnsnilif the provided error isnil. If execution has made it to this point, theerrvariable is certain to benil.The function returns
nil, nil, leading to a segfault later when the client is used.