From: Willy TARREAU Date: Sun, 14 May 2006 07:10:03 +0000 (+0200) Subject: [CRITICAL] fixed an uninitialized 'pend_pos' field in struct session. X-Git-Tag: v1.2.13.1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a71cc14c93d7a7c41fd9ae4c2e1ff90fa0a6e17;p=thirdparty%2Fhaproxy.git [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. --- diff --git a/haproxy.c b/haproxy.c index 66deec9244..9c528a463a 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)