Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp

This commit is contained in:
Gian-Carlo Pascutto 2012-02-23 18:00:39 +01:00
Родитель f4fb4a1991
Коммит 36b96477ff
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -702,12 +702,12 @@ nsresult
ProtocolParser::ProcessHostSubComplete(PRUint8 aNumEntries,
const nsACString& aChunk, PRUint32* aStart)
{
NS_ASSERTION(mChunkState.hashSize == PREFIX_SIZE,
"ProcessHostSub should only be called for prefix hashes.");
NS_ASSERTION(mChunkState.hashSize == COMPLETE_SIZE,
"ProcessHostSubComplete should only be called for complete hashes.");
if (aNumEntries == 0) {
// 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;
}