mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-01 15:25:43 +00:00
Discard unencrypted packets on encrypted control stream
This commit is contained in:
parent
6e9ed871bc
commit
723cac034b
@ -1119,10 +1119,10 @@ static void controlReceiveThreadFunc(void* context) {
|
||||
ctlHdr->type = LE16(ctlHdr->type);
|
||||
}
|
||||
else {
|
||||
// What do we do here???
|
||||
LC_ASSERT_VT(false);
|
||||
packetLength = (int)event.packet->dataLength;
|
||||
event.packet->data = NULL;
|
||||
Limelog("Discarding unencrypted packet on encrypted control stream: %04x\n", ctlHdr->type);
|
||||
enet_packet_destroy(event.packet);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user