misc changes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6550 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-12-06 22:26:37 +00:00
parent 5526800e90
commit 836f55ba33
10 changed files with 80 additions and 15 deletions

View File

@@ -899,7 +899,9 @@ SWITCH_DECLARE(char *) get_addr(char *buf, switch_size_t len, struct in_addr *in
{
assert(buf);
*buf = '\0';
inet_ntop(AF_INET, in, buf, len);
if (in) {
inet_ntop(AF_INET, in, buf, len);
}
return buf;
}