[systemd-devel] [PATCH] networkd: link - check returned value from set_lease_pool
Tom Gundersen
teg at jklm.no
Fri Jun 13 13:57:20 PDT 2014
Thanks! Please push.
On Fri, Jun 13, 2014 at 10:01 PM, Thomas H.P. Andersen <phomes at gmail.com> wrote:
> From: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
>
> ---
> src/network/networkd-link.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
> index 81872f7..baa0756 100644
> --- a/src/network/networkd-link.c
> +++ b/src/network/networkd-link.c
> @@ -1723,6 +1723,8 @@ static int link_configure(Link *link) {
> pool_start.s_addr = htobe32(be32toh(address->in_addr.in.s_addr) + 1);
> r = sd_dhcp_server_set_lease_pool(link->dhcp_server,
> &pool_start, 32);
> + if (r < 0)
> + return r;
>
> break;
> }
> --
> 1.9.3
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list