fix our first bug bug(#1)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@567 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b38d66f2ac
commit
681bf0e7f6
|
@ -1706,7 +1706,7 @@ bool RTPUDPv4Transmitter::GetLocalIPList_Interfaces()
|
|||
|
||||
while (tmp != 0)
|
||||
{
|
||||
if (tmp->ifa_addr->sa_family == AF_INET)
|
||||
if (tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_INET)
|
||||
{
|
||||
struct sockaddr_in *inaddr = (struct sockaddr_in *)tmp->ifa_addr;
|
||||
localIPs.push_back(ntohl(inaddr->sin_addr.s_addr));
|
||||
|
|
Loading…
Reference in New Issue