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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to