mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +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:
parent
7ea7b76e51
commit
ecd26cf41a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue