Browse Source

CAddrDB::LoadAddresses: properly initialize CAddress

Fixes issue #424
pull/1/head
Jeff Garzik 11 years ago committed by Jeff Garzik
parent
commit
a139ed74f2
  1. 2
      src/db.cpp

2
src/db.cpp

@ -528,7 +528,7 @@ bool CAddrDB::LoadAddresses() @@ -528,7 +528,7 @@ bool CAddrDB::LoadAddresses()
char psz[1000];
while (fgets(psz, sizeof(psz), filein))
{
CAddress addr(psz, NODE_NETWORK);
CAddress addr(psz, false, NODE_NETWORK);
addr.nTime = 0; // so it won't relay unless successfully connected
if (addr.IsValid())
AddAddress(addr);

Loading…
Cancel
Save