summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2016-10-21 02:46:32 +0000
committerNanang Izzuddin <nanang@teluu.com>2016-10-21 02:46:32 +0000
commit238f846625a0837f27cf3b4f4815409c6df3d02e (patch)
treed7fcec715fe7867435916ace6e0babd40d5a0896
parent2679a67077418e48c4e3c60fd63a7b182441d157 (diff)
Misc (re #1945): Fixed assertion in resolver: on read error, source address may be invalid and printing source address will trigger assertion (due to invalid address family).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5464 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib-util/src/pjlib-util/resolver.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pjlib-util/src/pjlib-util/resolver.c b/pjlib-util/src/pjlib-util/resolver.c
index 0deef98c..0a9819f1 100644
--- a/pjlib-util/src/pjlib-util/resolver.c
+++ b/pjlib-util/src/pjlib-util/resolver.c
@@ -1665,11 +1665,7 @@ static void on_read_complete(pj_ioqueue_key_t *key,
status = (pj_status_t)-bytes_read;
pj_strerror(status, errmsg, sizeof(errmsg));
- PJ_LOG(4,(resolver->name.ptr,
- "DNS resolver read error from %s:%d: %s",
- pj_sockaddr_print(src_addr, addr, sizeof(addr), 2),
- pj_sockaddr_get_port(src_addr),
- errmsg));
+ PJ_LOG(4,(resolver->name.ptr, "DNS resolver read error: %s", errmsg));
goto read_next_packet;
}