Mercurial > hg > dhcpcd
changeset 2549:0e059c32919d draft
Fix compile issue.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 30 Jun 2014 11:08:19 +0000 |
| parents | 4d25b57f18b2 |
| children | 957a57a4ff17 |
| files | dhcp6.c |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Mon Jun 30 09:44:07 2014 +0000 +++ b/dhcp6.c Mon Jun 30 11:08:19 2014 +0000 @@ -1022,12 +1022,13 @@ 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;
