mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
udpsrc: Make sure the sockaddr length used for recvfrom() is big enough.
Previously the sockaddr length used for recvfrom() was calculated as sizeof (struct sockaddr). However, this is too little to hold an IPv6 address, so the full size of the gst_sockaddr union should be used instead.
This commit is contained in:
parent
6e5e9edabf
commit
7c56695160
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ no_select:
|
|||
pktsize = readsize;
|
||||
|
||||
while (TRUE) {
|
||||
slen = sizeof (struct sockaddr);
|
||||
slen = sizeof (sa);
|
||||
#ifdef G_OS_WIN32
|
||||
ret = recvfrom (udpsrc->sock.fd, (char *) pktdata, pktsize, 0, &sa.sa,
|
||||
&slen);
|
||||
|
|
Loading…
Reference in a new issue