server_release didn't clear the buffers.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 18 Oct 2008 11:18:06 +0000 (13:18 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 18 Oct 2008 11:18:06 +0000 (13:18 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
common/server.c

index a07355e..585f241 100644 (file)
@@ -100,6 +100,8 @@ static void client_wipe(client_t *server)
     if (server->data && server->clear_data) {
         server->clear_data(&server->data);
     }
+    server->obuf.len = 0;
+    server->ibuf.len = 0;
     server->data = NULL;
     server->clear_data = NULL;
     server->run = NULL;