mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 04:13:35 +00:00
[DHCPCSVC]
- Initialize length to prevent a possible buffer overflow - Thanks to janderwald for finding my mistake svn path=/trunk/; revision=48232
This commit is contained in:
@@ -147,7 +147,7 @@ cleanup:
|
||||
|
||||
BOOL PrepareAdapterForService( PDHCP_ADAPTER Adapter ) {
|
||||
HKEY AdapterKey;
|
||||
DWORD Error = ERROR_SUCCESS, DhcpEnabled, Length;
|
||||
DWORD Error = ERROR_SUCCESS, DhcpEnabled, Length = sizeof(DWORD);
|
||||
|
||||
Adapter->DhclientState.config = &Adapter->DhclientConfig;
|
||||
strncpy(Adapter->DhclientInfo.name, (char*)Adapter->IfMib.bDescr,
|
||||
|
||||
Reference in New Issue
Block a user