CAddrDB::LoadAddresses: properly initialize CAddress

Fixes issue #424
This commit is contained in:
Jeff Garzik 2011-07-26 15:15:55 -04:00 committed by Jeff Garzik
parent aa7c5e7ceb
commit a139ed74f2

View File

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