commit | c8b476d9521e4355825ae89c24c12ffbbb1791c7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Dec 02 19:22:55 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Dec 02 19:22:55 2018 +0100 |
tree | 2667420700eb0f777c462854def18ab9fa632889 | |
parent | 75a323f04e7aaf80f0592b1b3cc430b23592f978 [diff] |
BUG/MINOR: lb-map: fix unprotected update to server's score The loop trying to figure the best server is theorically capable of finishing the loop with best == NULL, causing the HA_ATOMIC_SUB() to fail there. However for this to happen the list should be empty, which is avoided at the beginning of the function. As it is, the function still remains at risk so better address this now. This patch should be backported to 1.8.