Преглед изворни кода

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.

ambrop7 пре 12 година
родитељ
комит
ae14d254ac
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      server/server.c

+ 5 - 0
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);