Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2019 12:26:39 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r349411 - stable/11/sys/netpfil/ipfw/nat64
Message-ID:  <201906261226.x5QCQdq5020133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Jun 26 12:26:38 2019
New Revision: 349411
URL: https://svnweb.freebsd.org/changeset/base/349411

Log:
  Fix the uninitialized use of source IPv6 address in NAT64LSN.
  
  This code is already refactored in head/, but due to the missing
  epoch(9) support it is impossible to merge. So, it is direct commit to
  stable/11.
  
  Reported by:	Patrick M. Hausen <hausen punkt de>
  Tested by:	Patrick M. Hausen <hausen punkt de>
  MFC after:	3 days

Modified:
  stable/11/sys/netpfil/ipfw/nat64/nat64lsn.c

Modified: stable/11/sys/netpfil/ipfw/nat64/nat64lsn.c
==============================================================================
--- stable/11/sys/netpfil/ipfw/nat64/nat64lsn.c	Wed Jun 26 12:04:54 2019	(r349410)
+++ stable/11/sys/netpfil/ipfw/nat64/nat64lsn.c	Wed Jun 26 12:26:38 2019	(r349411)
@@ -408,6 +408,7 @@ nat64lsn_translate4(struct nat64lsn_cfg *cfg, const st
 	} else
 		logdata = NULL;
 
+	src6 = cfg->base.plat_prefix;
 	nat64_embed_ip4(&src6, cfg->base.plat_plen, htonl(f_id->src_ip));
 	ret = nat64_do_handle_ip4(*pm, &src6, &nh->addr, lport,
 	    &cfg->base, logdata);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906261226.x5QCQdq5020133>