mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-18 21:37:41 -04:00
modules: use sockaddr_storage for socket address
sockaddr_in only works for ipv4, for ipv6, the address will be truncated and then cause a stack overread in inet_ntop.
This commit is contained in:
parent
4366621b78
commit
9843ee858f
1 changed files with 1 additions and 1 deletions
|
|
@ -576,7 +576,7 @@ on_connect(void *data, int fd, uint32_t mask)
|
||||||
{
|
{
|
||||||
struct server *server = data;
|
struct server *server = data;
|
||||||
struct impl *impl = server->impl;
|
struct impl *impl = server->impl;
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_storage addr;
|
||||||
socklen_t addrlen;
|
socklen_t addrlen;
|
||||||
int client_fd, val;
|
int client_fd, val;
|
||||||
struct client *client = NULL;
|
struct client *client = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue