diff options
author | Daniel Mack <github@zonque.org> | 2016-01-21 11:50:08 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-01-21 11:50:08 +0100 |
commit | 9ecbcdffdf15bb76f57e8c403070dd43e206858d (patch) | |
tree | 421146d2e57a799d6ee8e62f3f80bcf4eba87885 /src/libsystemd-network/sd-dhcp-lease.c | |
parent | 5c9ddf7ff49a89639e0d7fe86022f5f125803f45 (diff) | |
parent | 2a836ca9703689ba05513c98fb293b91a186a9ac (diff) |
Merge pull request #2391 from keszybz/coverity
Coverity inspired fixes
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-lease.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-lease.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c index 15448c17c7..f466b07503 100644 --- a/src/libsystemd-network/sd-dhcp-lease.c +++ b/src/libsystemd-network/sd-dhcp-lease.c @@ -467,7 +467,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; |