Fix STPathSet serialization for multiple paths.

This commit is contained in:
Arthur Britto
2012-10-31 19:53:18 -07:00
parent f59b5202d3
commit 811eb8cf7c

View File

@@ -540,7 +540,6 @@ void STPathSet::add(Serializer& s) const
if (!bFirst)
{
s.add8(STPathElement::typeBoundary);
bFirst = false;
}
BOOST_FOREACH(const STPathElement& speElement, spPath)
@@ -558,6 +557,8 @@ void STPathSet::add(Serializer& s) const
if (iType & STPathElement::typeIssuer)
s.add160(speElement.getIssuerID());
}
bFirst = false;
}
s.add8(STPathElement::typeEnd);
}