Module Name: src
Committed By: martin
Date: Sat Sep 14 12:18:06 UTC 2013
Modified Files:
src/sys/external/bsd/ipf/netinet: ip_sync.c
Log Message:
Fix return value of ipf_sync_nat
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/ipf/netinet/ip_sync.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/ipf/netinet/ip_sync.c
diff -u src/sys/external/bsd/ipf/netinet/ip_sync.c:1.4 src/sys/external/bsd/ipf/netinet/ip_sync.c:1.5
--- src/sys/external/bsd/ipf/netinet/ip_sync.c:1.4 Sun Jul 22 17:48:53 2012
+++ src/sys/external/bsd/ipf/netinet/ip_sync.c Sat Sep 14 12:18:06 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_sync.c,v 1.4 2012/07/22 17:48:53 martin Exp $ */
+/* $NetBSD: ip_sync.c,v 1.5 2013/09/14 12:18:06 martin Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -100,7 +100,7 @@ struct file;
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_sync.c,v 1.4 2012/07/22 17:48:53 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_sync.c,v 1.5 2013/09/14 12:18:06 martin Exp $");
#else
static const char rcsid[] = "@(#)Id: ip_sync.c,v 1.1.1.2 2012/07/22 13:45:38 darrenr Exp";
#endif
@@ -915,7 +915,7 @@ ipf_sync_nat(ipf_main_softc_t *softc, sy
nat_t *n, *nat;
synclist_t *sl;
u_int hv = 0;
- int err;
+ int err = 0;
READ_ENTER(&softs->ipf_syncnat);
@@ -992,7 +992,7 @@ ipf_sync_nat(ipf_main_softc_t *softc, sy
}
RWLOCK_EXIT(&softs->ipf_syncnat);
- return 0;
+ return err;
}