mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 07:51:54 +00:00
Fix pointer check/access in Sys_InitNetworking()
Reported by scaronni. Fixes #25.
This commit is contained in:
parent
020d1daf92
commit
a96635219c
1 changed files with 3 additions and 3 deletions
|
@ -284,15 +284,15 @@ void Sys_InitNetworking(void)
|
|||
}
|
||||
|
||||
for( ifp = ifap; ifp; ifp = ifp->ifa_next ) {
|
||||
if ( !ifp->ifa_addr )
|
||||
continue;
|
||||
|
||||
if ( ifp->ifa_addr->sa_family != AF_INET )
|
||||
continue;
|
||||
|
||||
if ( !( ifp->ifa_flags & IFF_UP ) )
|
||||
continue;
|
||||
|
||||
if ( !ifp->ifa_addr )
|
||||
continue;
|
||||
|
||||
if ( !ifp->ifa_netmask )
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue