mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
Fix subscript[0] in netaddress.cpp
This commit is contained in:
parent
361d95265a
commit
b6856ebedc
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ std::vector<unsigned char> CService::GetKey() const
|
||||||
{
|
{
|
||||||
std::vector<unsigned char> vKey;
|
std::vector<unsigned char> vKey;
|
||||||
vKey.resize(18);
|
vKey.resize(18);
|
||||||
memcpy(&vKey[0], ip, 16);
|
memcpy(vKey.data(), ip, 16);
|
||||||
vKey[16] = port / 0x100;
|
vKey[16] = port / 0x100;
|
||||||
vKey[17] = port & 0x0FF;
|
vKey[17] = port & 0x0FF;
|
||||||
return vKey;
|
return vKey;
|
||||||
|
|
Loading…
Reference in a new issue