Date: Tue, 6 Jun 2017 19:21:36 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r319633 - stable/10/sys/contrib/ipfilter/netinet Message-ID: <201706061921.v56JLacK060272@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Tue Jun 6 19:21:35 2017 New Revision: 319633 URL: https://svnweb.freebsd.org/changeset/base/319633 Log: MFC r318998: Fix return value of ip_sync_nat. Previously, regardless of error it always returned a return code of 0. Obtained from: NetBSD ip_sync.c r1.5 Modified: stable/10/sys/contrib/ipfilter/netinet/ip_sync.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/contrib/ipfilter/netinet/ip_sync.c ============================================================================== --- stable/10/sys/contrib/ipfilter/netinet/ip_sync.c Tue Jun 6 19:20:28 2017 (r319632) +++ stable/10/sys/contrib/ipfilter/netinet/ip_sync.c Tue Jun 6 19:21:35 2017 (r319633) @@ -939,7 +939,7 @@ ipf_sync_nat(softc, sp, data) nat_t *n, *nat; synclist_t *sl; u_int hv = 0; - int err; + int err = 0; READ_ENTER(&softs->ipf_syncnat); @@ -1016,7 +1016,7 @@ ipf_sync_nat(softc, sp, data) } RWLOCK_EXIT(&softs->ipf_syncnat); - return 0; + return err; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706061921.v56JLacK060272>