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; } _______________________________________________ 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"