summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2009-02-25 11:35:31 +0100
committerPeter Kjellerstedt <pkj@axis.com>2009-02-25 12:52:37 +0100
commit7c56695160cd522f3998812dc796f3af34cb3465 (patch)
tree2787ec1afc7c37a331a06b954ac0a9065822d989 /gst
parent6e5e9edabfc34f0486f7befcae9d5860fe76427b (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.c2
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);