mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp
This commit is contained in:
parent
dc30af584b
commit
a0e2bd636d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user