Commit 8ef32f25 authored by reimar's avatar reimar

Make our getaddrinfo implementation initialize "struct addrinfo" return

value to NULL on errors.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22122 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d643640
......@@ -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