network: set return value at the end of the function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Feb 2021 15:44:03 +0000 (00:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Feb 2021 13:43:10 +0000 (22:43 +0900)
commit0ef9f3c76ff37a0ea7d2c44ad7c659d1e8d052f1
tree2d09c3354271e7d9debed4ae34d8260acecad6ae
parentd9eee312a7232c83d7494139d4d1bc8831d57455
network: set return value at the end of the function

The later netlink_call_async() call may fail. We should not touch the
return value when the function failed.
src/network/networkd-route.c