From 823870f88e54fd3618d04c90bb2d7c1612b7d820 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 4 Nov 2023 23:10:15 +0000 Subject: [PATCH] server: Fix double-free on failed Apple DH --- src/server.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server.c b/src/server.c index 83a3037..0119eb4 100644 --- a/src/server.c +++ b/src/server.c @@ -494,7 +494,6 @@ static int on_apple_dh_response(struct nvnc_client* client) } else { nvnc_log(NVNC_LOG_INFO, "User \"%s\" rejected", username); security_handshake_failed(client, "Invalid username or password"); - crypto_cipher_del(cipher); } return sizeof(*msg) + key_len;