This defect was found by the coccinelle script "unchecked-strdup.cocci". It can be backported to all supported branches. --- src/check.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/check.c b/src/check.c index 29a86b7dd..e636148b6 100644 --- a/src/check.c +++ b/src/check.c @@ -1667,6 +1667,8 @@ static int start_checks() /* 0- init the dummy frontend used to create all checks sessions */ init_new_proxy(&checks_fe); checks_fe.id = strdup("CHECKS-FE"); + if ( !checks_fe.id ) + return ERR_ALERT | ERR_FATAL; checks_fe.cap = PR_CAP_FE | PR_CAP_BE; checks_fe.mode = PR_MODE_TCP; checks_fe.maxconn = 0; -- 2.46.0.windows.1