Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp

This commit is contained in:
Gian-Carlo Pascutto 2012-02-23 18:00:39 +01:00
parent dc30af584b
commit a0e2bd636d

View File

@ -702,12 +702,12 @@ nsresult
ProtocolParser::ProcessHostSubComplete(PRUint8 aNumEntries, ProtocolParser::ProcessHostSubComplete(PRUint8 aNumEntries,
const nsACString& aChunk, PRUint32* aStart) const nsACString& aChunk, PRUint32* aStart)
{ {
NS_ASSERTION(mChunkState.hashSize == PREFIX_SIZE, NS_ASSERTION(mChunkState.hashSize == COMPLETE_SIZE,
"ProcessHostSub should only be called for prefix hashes."); "ProcessHostSubComplete should only be called for complete hashes.");
if (aNumEntries == 0) { if (aNumEntries == 0) {
// this is totally comprehensible. // this is totally comprehensible.
NS_WARNING("Expected > 0 entries for a 32-byte hash add."); NS_WARNING("Expected > 0 entries for a 32-byte hash sub.");
return NS_OK; return NS_OK;
} }