From 5820cc2048c8ce3b6ac0074664f75f4e9a4cf126 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 8 Jul 2021 20:50:09 -0500 Subject: [PATCH] Fix double-free if unencrypted packet is received on encrypted stream --- src/ControlStream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ControlStream.c b/src/ControlStream.c index 18055ad..d34f74e 100644 --- a/src/ControlStream.c +++ b/src/ControlStream.c @@ -768,6 +768,7 @@ static void controlReceiveThreadFunc(void* context) { // What do we do here??? LC_ASSERT(false); packetLength = (int)event.packet->dataLength; + event.packet->data = NULL; } } else {