diff --git a/src/creflector.cpp b/src/creflector.cpp index c10e2e0..4b126d2 100644 --- a/src/creflector.cpp +++ b/src/creflector.cpp @@ -786,7 +786,7 @@ bool CReflector::UpdateListenMac(int i) bool found = false; socklen_t ss_len; - if ( getifaddrs(&ifa_top) < 0 ) + if ( getifaddrs(&ifa_top) < 0 || ifa_top == NULL ) return false; m_Ip[i].GetSockAddr(ss_len);