This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: Correct error reporting in listInterfaces()
There are two problems with error reporting here. 1) If the upcast from resultingInterfaces to *grpc.Interfaces fails, we return (nil, err), but previous code ensures that err is nil at that point, so we return no error. 2) Due to shadowing the err variable, if an error is reported by convertToInterfaces, we'll also return (nil, nil) in that case fixes #3032 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
- Loading branch information