X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipv6cp.c;h=ba7bee55da86c312e49e84ca8014cc1b7d12736a;hb=0615e2adaa961cae00a9a361494b04f92ce34c4f;hp=11be07d5636691266d33e03e04abd4b440a2d7db;hpb=e8cd41673651e35447020bf9d98c5d6d4acd9212;p=ppp.git diff --git a/pppd/ipv6cp.c b/pppd/ipv6cp.c index 11be07d..ba7bee5 100644 --- a/pppd/ipv6cp.c +++ b/pppd/ipv6cp.c @@ -1070,7 +1070,7 @@ ether_to_eui64(eui64_t *p_eui64) { u_char addr[6]; - if (get_if_hwaddr(addr, devnam) < 0 || get_first_ether_hwaddr(addr) < 0) { + if (get_if_hwaddr(addr, devnam) < 0 && get_first_ether_hwaddr(addr) < 0) { error("ipv6cp: no persistent id can be found"); return 0; }