diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2009-02-25 11:35:31 +0100 |
---|---|---|
committer | Peter Kjellerstedt <pkj@axis.com> | 2009-02-25 12:52:37 +0100 |
commit | 7c56695160cd522f3998812dc796f3af34cb3465 (patch) | |
tree | 2787ec1afc7c37a331a06b954ac0a9065822d989 /gst | |
parent | 6e5e9edabfc34f0486f7befcae9d5860fe76427b (diff) |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/udp/gstudpsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 586f7c57..5b4f6a3e 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -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); |