libsystemd-network: use assert_se

It cannot fail.

CID #1320623.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-01-20 18:55:55 -05:00
parent a0db8e46e5
commit b14fff6e44
+1 -1
View File
@@ -453,7 +453,7 @@ static int lease_parse_classless_routes(
if (len < 4)
return -EINVAL;
lease_parse_be32(option, 4, &route->gw_addr.s_addr);
assert_se(lease_parse_be32(option, 4, &route->gw_addr.s_addr) >= 0);
option += 4;
len -= 4;