mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-21 17:00:24 -05:00
[CRITICAL] potential NULL dereference when counting stats in dispatch mode
This commit is contained in:
parent
47ee7ad0a4
commit
2d505e5754
1 changed files with 4 additions and 2 deletions
|
|
@ -5398,7 +5398,8 @@ int process_srv(struct session *t) {
|
|||
tv_eternity(&t->srexpire);
|
||||
|
||||
t->srv_state = SV_STDATA;
|
||||
t->srv->cum_sess++;
|
||||
if (t->srv)
|
||||
t->srv->cum_sess++;
|
||||
rep->rlim = rep->data + BUFSIZE; /* no rewrite needed */
|
||||
|
||||
/* if the user wants to log as soon as possible, without counting
|
||||
|
|
@ -5410,7 +5411,8 @@ int process_srv(struct session *t) {
|
|||
}
|
||||
else {
|
||||
t->srv_state = SV_STHEADERS;
|
||||
t->srv->cum_sess++;
|
||||
if (t->srv)
|
||||
t->srv->cum_sess++;
|
||||
rep->rlim = rep->data + BUFSIZE - MAXREWRITE; /* rewrite needed */
|
||||
}
|
||||
tv_eternity(&t->cnexpire);
|
||||
|
|
|
|||
Loading…
Reference in a new issue