server: Clean up crypto resources on disconnect
parent
e7a24822a7
commit
6e97000f11
|
@ -127,6 +127,11 @@ static void client_close(struct nvnc_client* client)
|
|||
nvnc_fb_unref(client->current_fb);
|
||||
}
|
||||
|
||||
#ifdef HAVE_CRYPTO
|
||||
crypto_key_del(client->apple_dh_secret);
|
||||
crypto_rsa_pub_key_del(client->rsa.pub);
|
||||
#endif
|
||||
|
||||
LIST_REMOVE(client, link);
|
||||
stream_destroy(client->net_stream);
|
||||
if (client->encoder) {
|
||||
|
|
Loading…
Reference in New Issue