mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[IP]
- Only accept an incoming connection on one listening socket, not all. Fixes use after free when multiple connection endpoints are assigned the same PCB. CORE-11649 #resolve svn path=/trunk/; revision=72183
This commit is contained in:
parent
f27ecf0960
commit
0439f525d3
1 changed files with 5 additions and 0 deletions
|
@ -345,6 +345,11 @@ TCPAcceptEventHandler(void *arg, PTCP_PCB newpcb)
|
|||
DereferenceObject(Bucket->AssociatedEndpoint);
|
||||
|
||||
CompleteBucket(Connection, Bucket, FALSE);
|
||||
|
||||
if (Status == STATUS_SUCCESS)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DereferenceObject(Connection);
|
||||
|
|
Loading…
Reference in a new issue