From: Yu Watanabe Date: Thu, 21 Feb 2019 02:46:51 +0000 (+0900) Subject: network: propagate error from in_addr_is_null() X-Git-Tag: v242-rc1~209^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e43ebfbf9960a7237479e8a4e67830ae4d3a730;p=thirdparty%2Fsystemd.git network: propagate error from in_addr_is_null() --- diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index b53461fd903..e057978400d 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -495,8 +495,9 @@ static int address_acquire(Link *link, Address *original, Address **ret) { assert(ret); /* Something useful was configured? just use it */ - if (in_addr_is_null(original->family, &original->in_addr) <= 0) - return 0; + r = in_addr_is_null(original->family, &original->in_addr); + if (r <= 0) + return r; /* The address is configured to be 0.0.0.0 or [::] by the user? * Then let's acquire something more useful from the pool. */