- Set *ConnectionInfo to NULL if we can't allocate memory for ConnInfo

svn path=/branches/aicom-network-fixes/; revision=35589
This commit is contained in:
Cameron Gutman 2008-08-24 02:55:26 +00:00
parent 4f54a68190
commit 963205e8b8

View file

@ -122,8 +122,10 @@ NTSTATUS TdiBuildNullConnectionInfo
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 );