pipewire/src/modules/module-protocol-native
Wim Taymans fe3dc58c89 connection: fix fd leaks and confusion
When we receive a message with fds and we are at the end of the
buffer, we will call clear_buffer, which moves the next fds over the
fds of this message before we copy the fds into the message. This
results in the fd being leaked and the message using the fd of the next
message instead.

Avoid this by first copying the fds into the message and then move the
new ones over the old ones.

This fixes some wrong fds being used by clients.
2024-09-26 13:10:15 +02:00
..
v0 modules: remove include of private.h 2023-07-11 19:31:27 +02:00
connection.c connection: fix fd leaks and confusion 2024-09-26 13:10:15 +02:00
connection.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
defs.h protocol-native: move compat_v2 to protocol 2023-07-11 16:13:38 +02:00
local-socket.c spa: add spa_json_begin_array/object and relaxed versions 2024-09-16 09:50:33 +02:00
portal-screencast.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
protocol-footer.c treewide: mark some functions static 2023-07-03 19:40:31 +02:00
protocol-footer.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
protocol-native.c protocol-native: improve security context properties 2024-03-13 12:53:04 +01:00
security-context.c protocol-native: clean up security context on unload 2024-03-15 13:00:30 +01:00
test-connection.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00