mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUILD/MINOR: stream: avoid a build warning with threads disabled
gcc 6+ complains about a possible null-deref here due to the test in
objt_server() :
if (objt_server(s->target))
HA_ATOMIC_ADD(&objt_server(s->target)->counters.retries, 1);
Let's simply change it to __objt_server(). This can be backported to
1.9 and 1.8.
This commit is contained in:
parent
09c4bab411
commit
1ef724e216
1 changed files with 1 additions and 1 deletions
|
|
@ -793,7 +793,7 @@ static int sess_update_st_cer(struct stream *s)
|
|||
si->state = SI_ST_REQ;
|
||||
} else {
|
||||
if (objt_server(s->target))
|
||||
HA_ATOMIC_ADD(&objt_server(s->target)->counters.retries, 1);
|
||||
HA_ATOMIC_ADD(&__objt_server(s->target)->counters.retries, 1);
|
||||
HA_ATOMIC_ADD(&s->be->be_counters.retries, 1);
|
||||
si->state = SI_ST_ASS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue