mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Fix double-free if unencrypted packet is received on encrypted stream
This commit is contained in:
parent
3b9d8a3176
commit
5820cc2048
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user