From: Roy Marples Date: Mon, 30 Jun 2014 11:08:19 +0000 (+0000) Subject: Fix compile issue. X-Git-Tag: v6.4.1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ff866d3ecf476e188f8a5048e20cc7e2f2d5400;p=thirdparty%2Fdhcpcd.git Fix compile issue. --- diff --git a/dhcp6.c b/dhcp6.c index f9966fc6..7677c9d3 100644 --- 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;