Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev-bsd: Fix netdev_bsd_get_mtu() return value.
When netdev_bsd_get_mtu() failed, it didn't report the error to the caller, so the caller couldn't work around not knowing the MTU, and ended up using an uninitialized 'mtu' value. Found by LLVM scan-build. Reported-by: Kevin Lo <[email protected]> Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Jarno Rajahalme <[email protected]> Acked-by: Kevin Lo <[email protected]> Acked-by: YAMAMOTO Takashi <[email protected]>
- Loading branch information