Fix endless loop in my_gethwaddr()
This commit is contained in:
parent
d588488855
commit
78eb1d48c9
@ -152,7 +152,10 @@ my_bool my_gethwaddr(uchar *to)
|
||||
{
|
||||
if (info->Type == MIB_IF_TYPE_ETHERNET &&
|
||||
info->AddressLength == ETHER_ADDR_LEN)
|
||||
{
|
||||
res= memcpy_and_test(to, info->Address, ETHER_ADDR_LEN);
|
||||
}
|
||||
info = info->Next;
|
||||
}
|
||||
|
||||
err:
|
||||
|
Loading…
x
Reference in New Issue
Block a user