]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile issue.
authorRoy Marples <roy@marples.name>
Mon, 30 Jun 2014 11:08:19 +0000 (11:08 +0000)
committerRoy Marples <roy@marples.name>
Mon, 30 Jun 2014 11:08:19 +0000 (11:08 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index f9966fc698f8511fd4f51330b25ffd0a7fae337b..7677c9d3d4a036a49a01259e453aac9c325f3327 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -1022,12 +1022,13 @@ dhcp6_startdiscover(void *arg)
        for (i = 0; i < ifp->options->ia_len; i++) {
                ia = &ifp->options->ia[i];
                if (!IN6_IS_ADDR_UNSPECIFIED(&ia->addr) ||
-                   (ia->prefix_len && ifp->options->ia_type == D6_OPTION_IA_PD))
+                   (ia->prefix_len &&
+                   ifp->options->ia_type == D6_OPTION_IA_PD))
                {
                        a = calloc(1, sizeof(*a));
                        if (a == NULL) {
                                syslog(LOG_ERR, "%s: %m", __func__);
-                               return NULL;
+                               return;
                        }
                        a->flags = IPV6_AF_REQUEST;
                        a->iface = ifp;