- Fail if TCPSocket doesn't complete successfully

svn path=/branches/aicom-network-fixes/; revision=36311
This commit is contained in:
Cameron Gutman 2008-09-19 04:38:25 +00:00
parent 249fa88dd2
commit 0b7d92c4b3

View file

@ -409,6 +409,11 @@ NTSTATUS FileOpenConnection(
Status = TCPSocket( Connection, AF_INET, SOCK_STREAM, IPPROTO_TCP );
if( !NT_SUCCESS(Status) ) {
TCPFreeConnectionEndpoint( Connection );
return Status;
}
/* Return connection endpoint file object */
Request->Handle.ConnectionContext = Connection;