[ros-diffs] [cgutman] 35589: - Set *ConnectionInfo to NULL if we can't allocate memory for ConnInfo
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Sun Aug 24 04:55:26 CEST 2008
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/network/afd/afd/tdiconn.c?rev=35589&r1=35588&r2=35589&view=diff
==============================================================================
--- 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 );
More information about the Ros-diffs
mailing list