summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-02-08 11:15:34 +0100
committerAlejandro Colomar <alx@kernel.org>2024-02-08 15:04:33 +0100
commit9e986704480de0d6b74dafa5ebcf775eaa88333a (patch)
tree8ea5e77fd4dea587f63e89a741113b136c4bac50 /src/nxt_conf_validation.c
parent46cef09f296d9a3d54b98331d25920fc6322bea8 (diff)
downloadunit-9e986704480de0d6b74dafa5ebcf775eaa88333a.tar.gz
unit-9e986704480de0d6b74dafa5ebcf775eaa88333a.tar.bz2
Configuration: Fix validation of "processes"
It's an integer, not a floating number. Fixes: 68c6b67ffc84 ("Configuration: support for rational numbers.") Closes: https://github.com/nginx/unit/issues/1115 Link: <https://github.com/nginx/unit/pull/1116> Reviewed-by: Zhidao Hong <z.hong@f5.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Dan Callahan <d.callahan@f5.com> Cc: Valentin Bartenev <vbartenev@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index bf18cd1a..caa068d2 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -2830,7 +2830,7 @@ nxt_conf_vldt_processes(nxt_conf_validation_t *vldt, nxt_conf_value_t *value,
nxt_int_t ret;
nxt_conf_vldt_processes_conf_t proc;
- if (nxt_conf_type(value) == NXT_CONF_NUMBER) {
+ if (nxt_conf_type(value) == NXT_CONF_INTEGER) {
int_value = nxt_conf_get_number(value);
if (int_value < 1) {