Author: cgutman
Date: Thu Sep 25 22:23:56 2008
New Revision: 36526
URL:
http://svn.reactos.org/svn/reactos?rev=36526&view=rev
Log:
- Return early if NBAddNeighbor or RouterAddRoute fails
- Fixes coverity error 389
Modified:
branches/aicom-network-fixes/lib/drivers/ip/network/ip.c
Modified: branches/aicom-network-fixes/lib/drivers/ip/network/ip.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/network/ip.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/lib/drivers/ip/network/ip.c [iso-8859-1] Thu Sep 25
22:23:56 2008
@@ -242,12 +242,14 @@
NUD_PERMANENT);
if (!NCE) {
TI_DbgPrint(MIN_TRACE, ("Could not create NCE.\n"));
+ return;
}
AddrWidenAddress( &NetworkAddress, &IF->Unicast, &IF->Netmask );
if (!RouterAddRoute(&NetworkAddress, &IF->Netmask, NCE, 1)) {
TI_DbgPrint(MIN_TRACE, ("Could not add route due to insufficient
resources.\n"));
+ return;
}
/* Allow TCP to hang some configuration on this interface */