From 5fcb89c1a0aaf7ef3c7409d555790394adab13e3 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 11 Oct 2017 11:39:31 +1000 Subject: [PATCH] * fix compile error --- src/jail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jail.c b/src/jail.c index 66b0cd1..16236ae 100644 --- a/src/jail.c +++ b/src/jail.c @@ -57,8 +57,8 @@ f2b_jail_set_param(f2b_jail_t *jail, const char *param, const char *value) { } return true; } - if (strcmp(param->name, "state") == 0) { - if (strcmp(param->value, "yes") == 0) { + if (strcmp(param, "state") == 0) { + if (strcmp(value, "yes") == 0) { jail->flags |= JAIL_HAS_STATE; } else { jail->flags &= ~JAIL_HAS_STATE;