Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: do not set protobuf has_* field too early
For two cases libcriu was setting the RPC protobuf field `has_*` before checking if the given parameter is valid. This can lead to situations, if the caller doesn't check the return value, that we pass as RPC struct to CRIU which has the `has_*` protobuf field set to true, but does not have a verified value (or non at all) set for the actual RPC entry. Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information