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:
Peter Kjellerstedt 2009-02-25 11:35:31 +01:00
parent 6e5e9edabf
commit 7c56695160

View file

@ -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);