]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-routing-policy-rule.c
network: in_addr_is_null() may return negative errno
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Feb 2019 23:09:13 +0000 (00:09 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 10 Feb 2019 16:28:09 +0000 (01:28 +0900)
commitd40b01e44b1bfc6af72284f722fff131d51ec349
tree67e476d2f0bd1bdae02483d869a469eaeb22548e
parentc606db69ab5d872c79046aa1632e38be6ac6d1db
network: in_addr_is_null() may return negative errno

So, do not silently cast the returned value to boolean.
Exception is the case that family is trivially AF_INET or AF_INET6.
src/network/netdev/geneve.c
src/network/netdev/tunnel.c
src/network/netdev/vxlan.c
src/network/networkd-address.c
src/network/networkd-route.c
src/network/networkd-routing-policy-rule.c