dhcp6: split assert_return() to be more debuggable when hit

(cherry picked from commit 3c290c03167cf9334cb419035587ff3057940eee)
This commit is contained in:
Lennart Poettering 2018-10-19 12:11:48 +02:00 committed by Thomas Haller
parent d49a036afe
commit 2dddf5924a

View file

@ -88,7 +88,10 @@ int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, const DHCP6IA *ia) {
DHCP6Address *addr;
int r;
assert_return(buf && *buf && buflen && ia, -EINVAL);
assert_return(buf, -EINVAL);
assert_return(*buf, -EINVAL);
assert_return(buflen, -EINVAL);
assert_return(ia, -EINVAL);
switch (ia->type) {
case SD_DHCP6_OPTION_IA_NA: