From efdadaa2d85892a3f0447687fbc3b9366f8278f2 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Wed, 5 Jun 2019 09:25:40 +0000 Subject: [PATCH] Initialize V_nat64out methods explicitly. It looks like initialization of static variable doesn't work for VIMAGE and this leads to panic. Reported by: olivier MFC after: 1 week --- sys/netpfil/ipfw/nat64/ip_fw_nat64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netpfil/ipfw/nat64/ip_fw_nat64.c b/sys/netpfil/ipfw/nat64/ip_fw_nat64.c index ea5ff597a7b..500cc329cfa 100644 --- a/sys/netpfil/ipfw/nat64/ip_fw_nat64.c +++ b/sys/netpfil/ipfw/nat64/ip_fw_nat64.c @@ -83,6 +83,8 @@ vnet_ipfw_nat64_init(const void *arg __unused) ch = &V_layer3_chain; first = IS_DEFAULT_VNET(curvnet) ? 1: 0; + /* Initialize V_nat64out methods explicitly. */ + nat64_set_output_method(0); error = nat64stl_init(ch, first); if (error != 0) return (error);