GNOME Bugzilla – Bug 514937
Correct initialization of hints in is_multicast_address()
Last modified: 2008-02-07 11:00:54 UTC
Please describe the problem: sebastien@kemper.freedesktop.org made a change in gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c where he changed struct addrinfo hints = { .ai_socktype = SOCK_DGRAM }; into struct addrinfo hints; ... hints.ai_socktype = SOCK_DGRAM; without taking into account that the old version automatically set all non-mentioned fields to zero. Please apply the attached patch. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 104622 [details] [review] Clear hints in is_multicast_address()
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.