Date: Sat, 27 May 2017 18:01:15 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318998 - head/sys/contrib/ipfilter/netinet Message-ID: <201705271801.v4RI1FV7030868@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Sat May 27 18:01:14 2017 New Revision: 318998 URL: https://svnweb.freebsd.org/changeset/base/318998 Log: 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 MFC after: 1 week Modified: head/sys/contrib/ipfilter/netinet/ip_sync.c Modified: head/sys/contrib/ipfilter/netinet/ip_sync.c ============================================================================== --- head/sys/contrib/ipfilter/netinet/ip_sync.c Sat May 27 17:00:30 2017 (r318997) +++ head/sys/contrib/ipfilter/netinet/ip_sync.c Sat May 27 18:01:14 2017 (r318998) @@ -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?201705271801.v4RI1FV7030868>