aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-27 16:09:15 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-27 16:09:15 +0000
commit1dceb16781c62319119d9ef70cc959b7acc92452 (patch)
treeaa80ab24532df002c1eb26bbe8ef5d6de4f0e6ef /main
parent06b4648fa2f3e8d73972525e814e5a077d6eccae (diff)
fix sip transaction match with authentication, fix confusing log message when using getaddrinfo
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@279817 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/netsock2.c6
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;
}