Skip to content

Commit

Permalink
Discard unencrypted packets on encrypted control stream
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jan 14, 2024
1 parent 6e9ed87 commit 723cac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ControlStream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 723cac0

Please sign in to comment.