Bug 1122835, Part 2: Simplify BitStringWithNoUnusedBits, r=keeler

--HG--
extra : rebase_source : 2beb4ceb866299454c3e9f5b93ac83a18c8fd1c2
This commit is contained in:
Brian Smith 2014-12-27 22:39:47 -08:00
parent f6753ef626
commit 29d3c0ed37

View File

@ -319,9 +319,7 @@ BitStringWithNoUnusedBits(Reader& input, /*out*/ Input& value)
if (unusedBitsAtEnd != 0) {
return Result::ERROR_BAD_DER;
}
Reader::Mark mark(valueWithUnusedBits.GetMark());
valueWithUnusedBits.SkipToEnd();
return valueWithUnusedBits.GetInput(mark, value);
return valueWithUnusedBits.SkipToEnd(value);
}
static inline Result