chiark / gitweb /
sd-dhcp6-lease: Return only -EINVAL when a NULL lease is supplied
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 10 Dec 2014 14:17:31 +0000 (16:17 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 10 Dec 2014 17:31:21 +0000 (18:31 +0100)
commitfab15fec2413bbc15dc7c24724ec82e371c966ba
tree441b2341171d02e9cab934cb27d2340a2db73b9d
parentc47e8936a43ce546e8a74fa569e9fbfae6c64be7
sd-dhcp6-lease: Return only -EINVAL when a NULL lease is supplied

Suppyling a NULL lease is not a condition that needs to be asserted,
returning -EINVAL is informative enough to the caller. This simplifies
calling code and doesn't falsely indicate that something erroneous was
attempted.
src/libsystemd-network/sd-dhcp6-lease.c