gst-libs/gst/sdp/gstsdpmessage.c: Clear the addrinfo struct using memset. Fixes #514937.

Original commit message from CVS:
Patch by: Peter Kjellerstedt  <pkj at axis com>
* gst-libs/gst/sdp/gstsdpmessage.c: (is_multicast_address):
Clear the addrinfo struct using memset. Fixes #514937.
This commit is contained in:
Peter Kjellerstedt 2008-02-07 11:00:45 +00:00 committed by Wim Taymans
parent b5aaf1e1a9
commit ed373d3072
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-02-07 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Peter Kjellerstedt <pkj at axis com>
* gst-libs/gst/sdp/gstsdpmessage.c: (is_multicast_address):
Clear the addrinfo struct using memset. Fixes #514937.
2008-02-06 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/tcp/gstfdset.h:

View file

@ -325,6 +325,7 @@ is_multicast_address (const gchar * host_name, guint * family)
gboolean ret = FALSE;
int err;
memset (&hints, 0, sizeof (hints));
hints.ai_socktype = SOCK_DGRAM;
g_return_val_if_fail (host_name, FALSE);