Commit abd383a2 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Sebastian Dröge
Browse files

udp: Initialize pointer to NULL

Otherwise we're calling free() with some random
memory address in error cases.

Fixes bug #587982.
parent 977796fd
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment