server: Fix double-free on failed Apple DH

pull/32/merge
Andri Yngvason 2023-11-04 23:10:15 +00:00
parent 6beb263027
commit 175d53bc41
1 changed files with 0 additions and 1 deletions

View File

@ -492,7 +492,6 @@ static int on_apple_dh_response(struct nvnc_client* client)
} else { } else {
nvnc_log(NVNC_LOG_INFO, "User \"%s\" rejected", username); nvnc_log(NVNC_LOG_INFO, "User \"%s\" rejected", username);
security_handshake_failed(client, "Invalid username or password"); security_handshake_failed(client, "Invalid username or password");
crypto_cipher_del(cipher);
} }
return sizeof(*msg) + key_len; return sizeof(*msg) + key_len;