aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.c b/init.c
index dd1db5c..9d80d1a 100644
--- a/init.c
+++ b/init.c
@@ -2737,6 +2737,11 @@ init_instance (struct context *c, const struct env_set *env, const unsigned int
init_port_share (c);
#endif
+#ifdef ENABLE_PF
+ if (child)
+ pf_init_context (c);
+#endif
+
/* Check for signals */
if (IS_SIG (c))
goto sig;
@@ -2787,6 +2792,10 @@ close_instance (struct context *c)
/* close TUN/TAP device */
do_close_tun (c, false);
+#ifdef ENABLE_PF
+ pf_destroy_context (&c->c2.pf);
+#endif
+
#ifdef ENABLE_PLUGIN
/* call plugin close functions and unload */
do_close_plugins (c);