From: Florent Bruneau Date: Sat, 18 Oct 2008 11:18:06 +0000 (+0200) Subject: server_release didn't clear the buffers. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=2075e951345cef3b141a00c8a22968072b47a153;p=apps%2Fpfixtools.git server_release didn't clear the buffers. Signed-off-by: Florent Bruneau --- diff --git a/common/server.c b/common/server.c index a07355e..585f241 100644 --- a/common/server.c +++ b/common/server.c @@ -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;