mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
misc changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6550 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user