]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dhcp6: split assert_return() to be more debuggable when hit
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Oct 2018 10:11:48 +0000 (12:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Oct 2018 09:23:19 +0000 (11:23 +0200)
src/libsystemd-network/dhcp6-option.c

index 321d0d21dfac02240d76c8b68358bc29ed2b5db3..a4278528ab2a85df390862412bacec7cb7ac7630 100644 (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: