diff --git a/netwerk/protocol/data/nsDataChannel.cpp b/netwerk/protocol/data/nsDataChannel.cpp index ba5969dd2d0b..608a6c6e0e03 100644 --- a/netwerk/protocol/data/nsDataChannel.cpp +++ b/netwerk/protocol/data/nsDataChannel.cpp @@ -33,6 +33,8 @@ nsDataChannel::OpenContentStream(bool async, nsIInputStream **result, bool lBase64; rv = nsDataHandler::ParseURI(spec, contentType, &contentCharset, lBase64, &dataBuffer); + if (NS_FAILED(rv)) + return rv; NS_UnescapeURL(dataBuffer);