mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:05:44 +00:00
- Fail if TCPSocket doesn't complete successfully
svn path=/branches/aicom-network-fixes/; revision=36311
This commit is contained in:
parent
249fa88dd2
commit
0b7d92c4b3
1 changed files with 5 additions and 0 deletions
|
@ -409,6 +409,11 @@ NTSTATUS FileOpenConnection(
|
||||||
|
|
||||||
Status = TCPSocket( Connection, AF_INET, SOCK_STREAM, IPPROTO_TCP );
|
Status = TCPSocket( Connection, AF_INET, SOCK_STREAM, IPPROTO_TCP );
|
||||||
|
|
||||||
|
if( !NT_SUCCESS(Status) ) {
|
||||||
|
TCPFreeConnectionEndpoint( Connection );
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
/* Return connection endpoint file object */
|
/* Return connection endpoint file object */
|
||||||
Request->Handle.ConnectionContext = Connection;
|
Request->Handle.ConnectionContext = Connection;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue