mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
udp: Initialize pointer to NULL
Otherwise we're calling free() with some random memory address in error cases. Fixes bug #587982.
This commit is contained in:
parent
977796fd07
commit
abd383a2a6
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ gst_udp_get_sockaddr_length (struct sockaddr_storage *addr)
|
|||
int
|
||||
gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
|
||||
{
|
||||
struct addrinfo hints, *res, *nres;
|
||||
struct addrinfo hints, *res = NULL, *nres;
|
||||
char service[NI_MAXSERV];
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue