mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:06:17 +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 );
|
||||
|
||||
if( !NT_SUCCESS(Status) ) {
|
||||
TCPFreeConnectionEndpoint( Connection );
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* Return connection endpoint file object */
|
||||
Request->Handle.ConnectionContext = Connection;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue