mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
- Preform the if (!Adapter) check before setting adapter to 0. Fixes Debug message reporting that the adapter was rejected.
svn path=/trunk/; revision=38233
This commit is contained in:
parent
66bbcfb1cc
commit
7907aea509
1 changed files with 4 additions and 2 deletions
|
@ -288,12 +288,14 @@ void AdapterInit() {
|
|||
Adapter->DhclientInfo.next = ifi;
|
||||
ifi = &Adapter->DhclientInfo;
|
||||
InsertTailList( &AdapterList, &Adapter->ListEntry );
|
||||
} else { free( Adapter ); Adapter = 0; }
|
||||
} else { free( Adapter ); Adapter = 0; }
|
||||
}
|
||||
}
|
||||
|
||||
if( !Adapter )
|
||||
DH_DbgPrint(MID_TRACE,("Adapter %d was rejected\n",
|
||||
Table->table[i].dwIndex));
|
||||
free( Adapter );
|
||||
Adapter = 0;
|
||||
}
|
||||
|
||||
DH_DbgPrint(MID_TRACE,("done with AdapterInit\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue