projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220f911
)
client: use the socket length from getsockname
author
Jonas Larsson
<jonas at hallerud dot se>
Wed, 5 Jan 2011 10:26:30 +0000
(11:26 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 5 Jan 2011 10:26:30 +0000
(11:26 +0100)
Use the length returned by getsockname to perform the getnameinfo call because
the size can depend on the socket type and platform.
Fixes #638723
gst/rtsp-server/rtsp-client.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-client.c
b/gst/rtsp-server/rtsp-client.c
index
03a7d8a
..
76450a2
100644
(file)
--- a/
gst/rtsp-server/rtsp-client.c
+++ b/
gst/rtsp-server/rtsp-client.c
@@
-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;