[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.
This commit is contained in:
Willy TARREAU 2006-05-14 09:10:03 +02:00
parent c3a2e0713f
commit 1a71cc14c9
1 changed files with 1 additions and 0 deletions

View File

@ -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)