mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Fixed logic error from r76.
This commit is contained in:
parent
5f06b2250c
commit
8f97a8b8ad
@ -378,7 +378,7 @@ static void get_nics() {
|
|||||||
|
|
||||||
reg_value regval;
|
reg_value regval;
|
||||||
|
|
||||||
if(reg_read(new_if.hwaddr, ®val, sizeof(regval)) != sizeof(regval)) {
|
if(reg_read(new_if.hwaddr, ®val, sizeof(regval)) == sizeof(regval)) {
|
||||||
baddr_to_str(new_if.ipx_net, regval.ipx_net, 4);
|
baddr_to_str(new_if.ipx_net, regval.ipx_net, 4);
|
||||||
baddr_to_str(new_if.ipx_node, regval.ipx_node, 6);
|
baddr_to_str(new_if.ipx_node, regval.ipx_node, 6);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user