Bug in previous commit.

This commit is contained in:
JoelKatz
2013-05-17 01:50:19 -07:00
parent c0e046a721
commit c2bea03886

View File

@@ -502,7 +502,7 @@ std::list<SHAMap::fetchPackEntry_t> SHAMap::getFetchPack(SHAMap* have, bool incl
if (!have || !have->hasInnerNode(*next, childHash))
stack.push(next);
}
if (includeLeaves && (!have || !have->hasLeafNode(next->getTag(), childHash)))
if (includeLeaves && (!have || !have->hasLeafNode(node->getTag(), childHash)))
{
Serializer s;
node->addRaw(s, snfPREFIX);