- 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:
Michael Martin 2008-12-21 16:36:03 +00:00
parent 66bbcfb1cc
commit 7907aea509

View file

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