Commit ed629a37 authored by reimar's avatar reimar

Explicitly set struct addrinfo to NULL if getaddrinfo failed instead of

assuming getaddrinfo will have done this.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22123 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8ef32f25
......@@ -159,6 +159,7 @@ static struct addrinfo* udp_resolve_host(const char *hostname, int port,
hints.ai_family = family;
hints.ai_flags = flags;
if ((error = getaddrinfo(node, service, &hints, &res))) {
res = NULL;
av_log(NULL, AV_LOG_ERROR, "udp_resolve_host: %s\n", gai_strerror(error));
}
......
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