FreeRDP/libfreerdp
Rubycat 3c2c6cc1d5 don't close freerdp_peer underlying socket twice
freerdp_peer->Disconnect calls BIO_free which then calls close on the
underlying file descriptor.

Then when freerdp_peer_free is called, the file descriptor is closed
again.

This is problematic if the file descriptor is recycled in between:

thread 1: freerdp_peer_new(42);
thread 1: freerdp_peer->Disconnect() closes 42
thread 2: opens a file with fd 42
thread 1: freerdp_peer_free closes 42
thread 2: uses closed file descriptor 42
2024-02-23 11:02:06 +01:00
..
cache [tidy] move loop variable declaration to loop 2024-02-22 12:31:50 +01:00
codec fixed unused-but-set-variable warnings 2024-02-22 12:31:50 +01:00
common [tidy] move loop variable declaration to loop 2024-02-22 12:31:50 +01:00
core don't close freerdp_peer underlying socket twice 2024-02-23 11:02:06 +01:00
crypto [tidy] move loop variable declaration to loop 2024-02-22 12:31:50 +01:00
emu [tidy] move loop variable declaration to loop 2024-02-22 12:31:50 +01:00
gdi [tests,gdi] skip failing test cases 2024-02-22 12:31:50 +01:00
locale [tidy] move loop variable declaration to loop 2024-02-22 12:31:50 +01:00
primitives fixed unused-but-set-variable warnings 2024-02-22 12:31:50 +01:00
utils [tidy] move loop variable declaration to loop 2024-02-22 12:31:50 +01:00
CMakeLists.txt [codec,jpeg] use winpr image for jpeg 2024-02-07 10:04:08 +01:00
freerdp.pc.in [cmake] make generated pkg-config files relocatable 2023-10-10 19:35:27 +02:00
FreeRDPConfig.cmake.in find_dependency for exported cmake config 2023-08-01 08:13:30 +02:00