From 61de225ce23ce8eed79dc2c9ed1e5017f6d1564b Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 8 Mar 2016 14:39:01 +1000 Subject: [PATCH] * jail.c: update f2b_jail_set_defaults() --- src/jail.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/jail.c b/src/jail.c index b688141..13c79eb 100644 --- a/src/jail.c +++ b/src/jail.c @@ -68,13 +68,11 @@ f2b_jail_apply_config(f2b_jail_t *jail, f2b_config_section_t *config) { } void -f2b_jail_set_defaults(f2b_config_section_t *config) { - assert(config != NULL); - assert(config->type == t_defaults); +f2b_jail_set_defaults(f2b_config_section_t *section) { + assert(section != NULL); + assert(section->type == t_defaults); - config->type = t_jail; - f2b_jail_apply_config(&defaults, config); - config->type = t_defaults; + f2b_jail_apply_config(&defaults, section); return; }