mirror of
https://github.com/reactos/reactos.git
synced 2024-09-04 09:39:07 +00:00
- Return early if NBAddNeighbor or RouterAddRoute fails
- Fixes coverity error 389 svn path=/branches/aicom-network-fixes/; revision=36526
This commit is contained in:
parent
9023e12475
commit
d9db39f82d
|
@ -242,12 +242,14 @@ VOID IPAddInterfaceRoute( PIP_INTERFACE IF ) {
|
||||||
NUD_PERMANENT);
|
NUD_PERMANENT);
|
||||||
if (!NCE) {
|
if (!NCE) {
|
||||||
TI_DbgPrint(MIN_TRACE, ("Could not create NCE.\n"));
|
TI_DbgPrint(MIN_TRACE, ("Could not create NCE.\n"));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AddrWidenAddress( &NetworkAddress, &IF->Unicast, &IF->Netmask );
|
AddrWidenAddress( &NetworkAddress, &IF->Unicast, &IF->Netmask );
|
||||||
|
|
||||||
if (!RouterAddRoute(&NetworkAddress, &IF->Netmask, NCE, 1)) {
|
if (!RouterAddRoute(&NetworkAddress, &IF->Netmask, NCE, 1)) {
|
||||||
TI_DbgPrint(MIN_TRACE, ("Could not add route due to insufficient resources.\n"));
|
TI_DbgPrint(MIN_TRACE, ("Could not add route due to insufficient resources.\n"));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allow TCP to hang some configuration on this interface */
|
/* Allow TCP to hang some configuration on this interface */
|
||||||
|
|
Loading…
Reference in a new issue