OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34fc5e
)
Explicitly set struct addrinfo to NULL if getaddrinfo failed instead of
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 28 Feb 2010 22:33:22 +0000
(22:33 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 28 Feb 2010 22:33:22 +0000
(22:33 +0000)
assuming getaddrinfo will have done this.
Originally committed as revision 22123 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/udp.c
patch
|
blob
|
history
diff --git
a/libavformat/udp.c
b/libavformat/udp.c
index
555888b
..
c548014
100644
(file)
--- a/
libavformat/udp.c
+++ b/
libavformat/udp.c
@@
-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));
}