Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorambrop7 <ambrop7@1a93d707-3861-5ebc-ad3b-9740d49b5140>2014-02-13 23:09:00 +0400
committerambrop7 <ambrop7@1a93d707-3861-5ebc-ad3b-9740d49b5140>2014-02-13 23:09:00 +0400
commitae14d254ac3754c7af50719be5a1dd28803fac60 (patch)
treed10af38a93796c0d6c75080b21c6e461c6de0a5b /server
parent37058a71df25cef245ab30d5b2219e42b697c53c (diff)
server: Fix bug forgetting to call BSSLConnection_ReleaseBuffers().
Unless threads are enabled, this is an assert failure if NDEBUG is not defined an a non-issue otherwise.
Diffstat (limited to 'server')
-rw-r--r--server/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/server.c b/server/server.c
index 231541f..2b22101 100644
--- a/server/server.c
+++ b/server/server.c
@@ -1140,6 +1140,11 @@ fail1:
void client_dealloc_io (struct client_data *client)
{
+ // stop using any buffers before they get freed
+ if (options.ssl) {
+ BSSLConnection_ReleaseBuffers(&client->sslcon);
+ }
+
// allow freeing fair queue flows
PacketPassFairQueue_PrepareFree(&client->output_peers_fairqueue);