Mercurial > hg > dhcpcd
changeset 3725:6da1daf1667a draft
Ensure we have an active interface (which we always will).
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 14 Aug 2016 09:06:41 +0000 |
| parents | b8b3ffab4138 |
| children | 810708c451a4 |
| files | dhcp6.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Sun Aug 14 08:51:19 2016 +0000 +++ b/dhcp6.c Sun Aug 14 09:06:41 2016 +0000 @@ -3184,7 +3184,7 @@ if (ifp->active) break; } - if ((ia = ipv6_linklocal(ifp)) != NULL) { + if (ifp != NULL && (ia = ipv6_linklocal(ifp)) != NULL) { memcpy(&sa.sin6_addr, &ia->addr, sizeof(sa.sin6_addr)); sa.sin6_scope_id = ifp->index; }
