Bug 1781038 - Add missing null check in TCPSocketParent. r=kershaw

Differential Revision: https://phabricator.services.mozilla.com/D152637
This commit is contained in:
Christian Holler 2022-07-26 09:58:29 +00:00
parent 40f072b8de
commit 390fbea6c3

View File

@ -113,6 +113,7 @@ mozilla::ipc::IPCResult TCPSocketParent::RecvResume() {
}
mozilla::ipc::IPCResult TCPSocketParent::RecvData(const SendableData& aData) {
NS_ENSURE_TRUE(mSocket, IPC_OK());
ErrorResult rv;
switch (aData.type()) {