From c6f3f5b428413021b5ea3c4159c9d91a9188e945 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 17 Mar 2013 09:54:13 +0100 Subject: [PATCH] cookies are overwritten prior to fork --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 59c2ec41..5a944aef 100644 --- a/src/main.c +++ b/src/main.c @@ -432,6 +432,7 @@ void clear_lists(main_server_st *s) if (ctmp->fd >= 0) close(ctmp->fd); list_del(&ctmp->list); + memset(ctmp, 0, sizeof(*ctmp)); free(ctmp); s->clist.total--; }