X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Frouting.c;h=637930271178d8fce8c8a6f3a04ee6ad1deb30fd;hb=952891ddb96a341c0e24ecb7dec6361c7bbeaece;hp=c37e744148bd299bba08532face17a3298e25a56;hpb=82adac267bc089391397b36413bba210a8e7c68f;p=tpg%2Facess2.git diff --git a/Modules/IPStack/routing.c b/Modules/IPStack/routing.c index c37e7441..63793027 100644 --- a/Modules/IPStack/routing.c +++ b/Modules/IPStack/routing.c @@ -348,10 +348,10 @@ tRoute *IPStack_FindRoute(int AddressType, tInterface *Interface, void *Address) { rt = &Interface->Route; // Make sure route is up to date - memcpy(rt->Network, iface->Address, addrSize); + memcpy(rt->Network, Interface->Address, addrSize); memset(rt->NextHop, 0, addrSize); rt->Metric = DEFAUTL_METRIC; - rt->SubnetBits = iface->SubnetBits; + rt->SubnetBits = Interface->SubnetBits; if( IPStack_CompareAddress(AddressType, rt->Network, Address, rt->SubnetBits) ) {