]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CRITICAL] fixed an uninitialized 'pend_pos' field in struct session.
authorWilly TARREAU <willy@pcw.(none)>
Sun, 14 May 2006 07:10:03 +0000 (09:10 +0200)
committerWilly TARREAU <willy@pcw.(none)>
Sun, 14 May 2006 07:10:03 +0000 (09:10 +0200)
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

index 66deec92444ccb279661809cbdd538811bcbb48e..9c528a463a0c50af47b3319b7b033b9a481f44f0 100644 (file)
--- 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)