mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
client: use the socket length from getsockname
Use the length returned by getsockname to perform the getnameinfo call because the size can depend on the socket type and platform. Fixes #638723
This commit is contained in:
parent
220f911851
commit
b5a1719e89
1 changed files with 0 additions and 1 deletions
|
@ -1740,7 +1740,6 @@ gst_rtsp_client_accept (GstRTSPClient * client, GIOChannel * channel)
|
|||
|
||||
client->is_ipv6 = addr.ss_family == AF_INET6;
|
||||
|
||||
addrlen = sizeof (addr);
|
||||
if (getnameinfo ((struct sockaddr *) &addr, addrlen, ip, sizeof (ip), NULL, 0,
|
||||
NI_NUMERICHOST) != 0)
|
||||
goto getnameinfo_failed;
|
||||
|
|
Loading…
Reference in a new issue