Skip to content

Commit bcd92e1

Browse files
committed
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
1 parent a37e544 commit bcd92e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

daemon/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ static void options(int *argc, char ***argv, charp_ht templates) {
12051205
die("Invalid Redis endpoint [IP:PORT/INT] '%s' (--redis-subscribe)", redisps_subscribe);
12061206
}
12071207

1208-
if (rtpe_config.fmt > 2)
1208+
if (rtpe_config.fmt < 0 || rtpe_config.fmt > 2)
12091209
die("Invalid XMLRPC format");
12101210

12111211
// XXX unify the log facility options

0 commit comments

Comments
 (0)