svn commit: r318998 - head/sys/contrib/ipfilter/netinet
Cy Schubert
cy at FreeBSD.org
Sat May 27 18:01:16 UTC 2017
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;
}
More information about the svn-src-head
mailing list