diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-11-20 09:47:32 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-11-20 09:47:32 +0000 |
commit | b7375dded805157bed596529dd1a0015a9ceb5b3 (patch) | |
tree | 88b814eea49988b8208160a9ed13941a54a56f0e /pjlib/src/pj | |
parent | 07ff91da6934c2afecec7061a7ffa6a9cf55c19b (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')
-rw-r--r-- | pjlib/src/pj/sock_bsd.c | 3 |
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 |