From 811eb8cf7c98050c34deccc431d94d6db7bd6030 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Wed, 31 Oct 2012 19:53:18 -0700 Subject: [PATCH] Fix STPathSet serialization for multiple paths. --- src/SerializedTypes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SerializedTypes.cpp b/src/SerializedTypes.cpp index 5fc0ebbe3..f72502e8d 100644 --- a/src/SerializedTypes.cpp +++ b/src/SerializedTypes.cpp @@ -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); }