Author: cgutman
Date: Sat Aug 23 21:55:26 2008
New Revision: 35589
URL:
http://svn.reactos.org/svn/reactos?rev=35589&view=rev
Log:
- Set *ConnectionInfo to NULL if we can't allocate memory for ConnInfo
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/tdiconn.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/tdiconn.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/tdiconn.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/tdiconn.c [iso-8859-1] Sat Aug 23
21:55:26 2008
@@ -122,8 +122,10 @@
ExAllocatePool(NonPagedPool,
sizeof(TDI_CONNECTION_INFORMATION) +
TdiAddressSize);
- if (!ConnInfo)
- return STATUS_INSUFFICIENT_RESOURCES;
+ if (!ConnInfo) {
+ *ConnectionInfo = NULL;
+ return STATUS_INSUFFICIENT_RESOURCES;
+ }
Status = TdiBuildNullConnectionInfoInPlace( ConnInfo, Type );