network: do not log wrong error cause
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Feb 2019 06:09:28 +0000 (15:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Feb 2019 11:14:27 +0000 (20:14 +0900)
commit825ace96b1076ac367d2962e3979f62954145812
treee424e61265cf88e7fb5a88b1389dfc0c56cf86f0
parent4ee175454b45b449fe13568299787316de1cb94f
network: do not log wrong error cause

If sd_dhcp_lease_get_router() returns a positive value and the first
router is null, then invalid error cause was logged.

Follow-up for f8862395e8f802e4106a07ceaaf02b6a1faa5a6d.
src/network/networkd-dhcp4.c