mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 05:49:59 +00:00
Fix double-free if unencrypted packet is received on encrypted stream
This commit is contained in:
1 parent
3b9d8a3176
commit
5820cc2048
1 file changed
+1
@@ -768,6 +768,7 @@ static void controlReceiveThreadFunc(void* context) {
|
|||||||
// What do we do here???
|
// What do we do here???
|
||||||
LC_ASSERT(false);
|
LC_ASSERT(false);
|
||||||
packetLength = (int)event.packet->dataLength;
|
packetLength = (int)event.packet->dataLength;
|
||||||
|
event.packet->data = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in new issue
Block a user