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:
Anthony Minessale 2006-02-08 20:56:55 +00:00
parent b38d66f2ac
commit 681bf0e7f6
2 changed files with 1 additions and 1 deletions

View File

@ -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));

0
test
View File