From 72a4f43f372a9e64a525a20903910711e7ec32ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Chlup?= Date: Thu, 29 Aug 2024 14:52:39 +0200 Subject: [PATCH] Do not accept CMD parameters without a value in manager --- native/mod_manager/mod_manager.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/native/mod_manager/mod_manager.c b/native/mod_manager/mod_manager.c index 76abafab..02289c14 100644 --- a/native/mod_manager/mod_manager.c +++ b/native/mod_manager/mod_manager.c @@ -1343,6 +1343,11 @@ static char *process_config(request_rec *r, char **ptr, int *errtype) while (ptr[i]) { char *err_msg = NULL; + if (ptr[i + 1] && *ptr[i + 1] == '\0') { + *errtype = TYPESYNTAX; + return SMESPAR; + } + /* Balancer part */ err_msg = process_config_balancer(r, ptr[i], ptr[i + 1], &balancerinfo, &nodeinfo, errtype); if (err_msg != NULL) {