- Major version jump from v2.0 to v2.1 - Update haproxy download URL and hash - Add new patches (see https://www.haproxy.org/bugs/bugs-2.1.2.html) - Stop building LUA 5.3 in the haproxy build-process and use liblua5.3 as a dependency instead Signed-off-by: Christian Lachner <gladiac@gmail.com>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
commit 03abacf806d155ca50fae612c0f999071625dd1d
|
|
Author: Willy Tarreau <w@1wt.eu>
|
|
Date: Thu Jan 23 11:47:13 2020 +0100
|
|
|
|
CLEANUP: stats: shut up a wrong null-deref warning from gcc 9.2
|
|
|
|
As reported in bug #447, gcc 9.2 invents impossible code paths and then
|
|
complains that we don't check for our pointers to be NULL... This code
|
|
path is not critical, better add the test to shut it up than try to
|
|
help it being less creative.
|
|
|
|
This code hasn't changed for a while, so it could help distros to
|
|
backport this to older releases.
|
|
|
|
(cherry picked from commit 027d206b57bec59397eb6fb23f8ff4e3a2edb2e1)
|
|
Signed-off-by: Willy Tarreau <w@1wt.eu>
|
|
|
|
diff --git a/src/stats.c b/src/stats.c
|
|
index 32236f457..befa75b30 100644
|
|
--- a/src/stats.c
|
|
+++ b/src/stats.c
|
|
@@ -2400,7 +2400,7 @@ static void stats_dump_html_head(struct appctx *appctx, struct uri_auth *uri)
|
|
"-->\n"
|
|
"</style></head>\n",
|
|
(appctx->ctx.stats.flags & STAT_SHNODE) ? " on " : "",
|
|
- (appctx->ctx.stats.flags & STAT_SHNODE) ? (uri->node ? uri->node : global.node) : ""
|
|
+ (appctx->ctx.stats.flags & STAT_SHNODE) ? (uri && uri->node ? uri->node : global.node) : ""
|
|
);
|
|
}
|
|
|