From bcd92e137b3098513e7f59c8921509e32e7da52c Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 18 May 2026 09:40:51 +0200 Subject: [PATCH] MT#61856 main: rtpe_config, don't accept xmlrpc timeout < 0 Since this is parsed as type int, potentially can be given as -1. Hence don't accept the range < 0 and > 2. Change-Id: I8cdbf6e7626ec89bcd287742ddfbd49a3e1a3c90 --- daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/main.c b/daemon/main.c index 20ad2f15d..f3fffff7c 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1205,7 +1205,7 @@ static void options(int *argc, char ***argv, charp_ht templates) { die("Invalid Redis endpoint [IP:PORT/INT] '%s' (--redis-subscribe)", redisps_subscribe); } - if (rtpe_config.fmt > 2) + if (rtpe_config.fmt < 0 || rtpe_config.fmt > 2) die("Invalid XMLRPC format"); // XXX unify the log facility options