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

This commit is contained in:
Lennart Poettering
2018-10-25 11:23:19 +02:00
parent e0a18b74a3
commit 3c290c0316
+4 -1
View File
@@ -86,7 +86,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: