Merge pull request #544 from i404788/master
Fix hanging UI when `null` addr
This commit is contained in:
commit
2944575cbc
|
@ -262,8 +262,14 @@ bool Init(bool open_adapter)
|
|||
curaddr = curaddr->ifa_next;
|
||||
continue;
|
||||
}
|
||||
if (!curaddr->ifa_addr) continue;
|
||||
|
||||
if (!curaddr->ifa_addr)
|
||||
{
|
||||
printf("Device (%s) does not have an address :/\n", curaddr->ifa_name);
|
||||
curaddr = curaddr->ifa_next;
|
||||
continue;
|
||||
}
|
||||
|
||||
u16 af = curaddr->ifa_addr->sa_family;
|
||||
if (af == AF_INET)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue