Commit a34fc5e2 authored by Reimar Döffinger's avatar Reimar Döffinger

Make our getaddrinfo implementation initialize "struct addrinfo" return

value to NULL on errors.

Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 27dbc47c
......@@ -78,6 +78,7 @@ int ff_getaddrinfo(const char *node, const char *service,
return win_getaddrinfo(node, service, hints, res);
#endif
*res = NULL;
sin = av_mallocz(sizeof(struct sockaddr_in));
if (!sin)
return EAI_FAIL;
......
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