summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/sock_bsd.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-11-20 09:47:32 +0000
committerBenny Prijono <bennylp@teluu.com>2007-11-20 09:47:32 +0000
commitb7375dded805157bed596529dd1a0015a9ceb5b3 (patch)
tree88b814eea49988b8208160a9ed13941a54a56f0e /pjlib/src/pj/sock_bsd.c
parent07ff91da6934c2afecec7061a7ffa6a9cf55c19b (diff)
Ticket #419: initial support for DNS AAAA resolution
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1587 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/sock_bsd.c')
-rw-r--r--pjlib/src/pj/sock_bsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c
index eafc29e3..156ded85 100644
--- a/pjlib/src/pj/sock_bsd.c
+++ b/pjlib/src/pj/sock_bsd.c
@@ -307,6 +307,9 @@ PJ_DEF(pj_status_t) pj_inet_ntop(int af, const void *src,
{
PJ_ASSERT_RETURN(src && dst && size, PJ_EINVAL);
+
+ *dst = '\0';
+
PJ_ASSERT_RETURN(af==PJ_AF_INET || af==PJ_AF_INET6, PJ_EINVAL);
#if defined(PJ_SOCK_HAS_INET_NTOP) && PJ_SOCK_HAS_INET_NTOP != 0