From 1a71cc14c93d7a7c41fd9ae4c2e1ff90fa0a6e17 Mon Sep 17 00:00:00 2001 From: Willy TARREAU Date: Sun, 14 May 2006 09:10:03 +0200 Subject: [PATCH] [CRITICAL] fixed an uninitialized 'pend_pos' field in struct session. This might cause random crashes when memory is not initialized first. Encountered on Solaris 8 only for now, OpenBSD and Linux seem unaffected. --- haproxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/haproxy.c b/haproxy.c index 66deec924..9c528a463 100644 --- a/haproxy.c +++ b/haproxy.c @@ -3140,6 +3140,7 @@ int event_accept(int fd) { s->cli_fd = cfd; s->srv_fd = -1; s->srv = NULL; + s->pend_pos = NULL; s->conn_retries = p->conn_retries; if (s->flags & SN_MONITOR)