Преглед на файлове

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);