Author: eugen (ports committer)
Date: Fri May 19 07:31:48 2017
New Revision: 318519
URL: https://svnweb.freebsd.org/changeset/base/318519

Log:
  MFC r318150:
  
  Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global" 
case.
  
  PR:             218968
  Approved by:    ae, vsevolod (mentor)

Modified:
  stable/10/sys/netinet/libalias/alias.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/libalias/alias.c
==============================================================================
--- stable/10/sys/netinet/libalias/alias.c      Fri May 19 07:28:36 2017        
(r318518)
+++ stable/10/sys/netinet/libalias/alias.c      Fri May 19 07:31:48 2017        
(r318519)
@@ -699,12 +699,14 @@ ProtoAliasOut(struct libalias *la, struc
        struct alias_link *lnk;
 
        LIBALIAS_LOCK_ASSERT(la);
-       (void)create;
 
 /* Return if proxy-only mode is enabled */
        if (la->packetAliasMode & PKT_ALIAS_PROXY_ONLY)
                return (PKT_ALIAS_OK);
 
+       if (!create)
+               return (PKT_ALIAS_IGNORED);
+
        lnk = FindProtoOut(la, *ip_src, ip_dst, ip_p);
        if (lnk != NULL) {
                struct in_addr alias_address;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to