diff options
author | David Vossel <dvossel@digium.com> | 2010-07-27 16:11:11 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2010-07-27 16:11:11 +0000 |
commit | d61a4088f5b052a4caec1bbbfa4ae6b165c451a6 (patch) | |
tree | ea829bd7c41dbd04d04a1d9258e427db186ee4cd /main/netsock2.c | |
parent | 8bd241f2382979e65f127775e133b7707739a1f2 (diff) |
Merged revisions 279817 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r279817 | dvossel | 2010-07-27 11:09:15 -0500 (Tue, 27 Jul 2010) | 2 lines
fix sip transaction match with authentication, fix confusing log message when using getaddrinfo
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@279818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/netsock2.c')
-rw-r--r-- | main/netsock2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/netsock2.c b/main/netsock2.c index 52b8a8d39..929f4b337 100644 --- a/main/netsock2.c +++ b/main/netsock2.c @@ -201,8 +201,10 @@ int ast_sockaddr_parse(struct ast_sockaddr *addr, const char *str, int flags) hints.ai_flags = AI_NUMERICHOST; #endif if ((e = getaddrinfo(host, port, &hints, &res))) { - ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n", - host, S_OR(port, "(null)"), gai_strerror(e)); + if (e != EAI_NONAME) { /* if this was just a host name rather than a ip address, don't print error */ + ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n", + host, S_OR(port, "(null)"), gai_strerror(e)); + } return 0; } |