mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 05:49:59 +00:00
Discard unencrypted packets on encrypted control stream
This commit is contained in:
1 parent
6e9ed871bc
commit
723cac034b
1 file changed
+3
-3
+3
-3
@@ -1119,10 +1119,10 @@ static void controlReceiveThreadFunc(void* context) {
|
|||||||
ctlHdr->type = LE16(ctlHdr->type);
|
ctlHdr->type = LE16(ctlHdr->type);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// What do we do here???
|
|
||||||
LC_ASSERT_VT(false);
|
LC_ASSERT_VT(false);
|
||||||
packetLength = (int)event.packet->dataLength;
|
Limelog("Discarding unencrypted packet on encrypted control stream: %04x\n", ctlHdr->type);
|
||||||
event.packet->data = NULL;
|
enet_packet_destroy(event.packet);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in new issue
Block a user