]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix signed/unsigned confusion
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 May 2020 05:40:31 +0000 (07:40 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 May 2020 06:13:11 +0000 (08:13 +0200)
commita27060759bcdbf35a03a883a121838b8d281da20
tree5b3459011e1c16bc77c631abc529c7477ef37864
parenta60416f319439fc34b90225855ee88247c920854
network: fix signed/unsigned confusion

sd_dhcp_lease_get_servers() returns int, which would never be negative when
cast to size_t, so we condition check was wrong.

CID#1425417.
src/network/networkd-dhcp-server.c