mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
dhcp6: split assert_return() to be more debuggable when hit
This commit is contained in:
parent
e0a18b74a3
commit
3c290c0316
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user