Sync with trunk head (r49139)
[reactos.git] / lib / drivers / ip / transport / tcp / accept.c
index 643f59d..b300fa3 100644 (file)
@@ -117,6 +117,7 @@ BOOLEAN TCPAbortListenForSocket( PCONNECTION_ENDPOINT Listener,
     Bucket = CONTAINING_RECORD(ListEntry, TDI_BUCKET, Entry);
 
     if( Bucket->AssociatedEndpoint == Connection ) {
+        DereferenceObject(Bucket->AssociatedEndpoint);
         RemoveEntryList( &Bucket->Entry );
         ExFreePoolWithTag( Bucket, TDI_BUCKET_TAG );
         Found = TRUE;