Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/ipf/netinet Fix return value of ipf_sync_nat



details:   https://anonhg.NetBSD.org/src/rev/5f6ddba14857
branches:  trunk
changeset: 789960:5f6ddba14857
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Sep 14 12:18:06 2013 +0000

description:
Fix return value of ipf_sync_nat

diffstat:

 sys/external/bsd/ipf/netinet/ip_sync.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f0b0956c2bbf -r 5f6ddba14857 sys/external/bsd/ipf/netinet/ip_sync.c
--- a/sys/external/bsd/ipf/netinet/ip_sync.c    Sat Sep 14 12:06:19 2013 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_sync.c    Sat Sep 14 12:18:06 2013 +0000
@@ -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 @@
 #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 @@
        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 @@
        }
 
        RWLOCK_EXIT(&softs->ipf_syncnat);
-       return 0;
+       return err;
 }
 
 



Home | Main Index | Thread Index | Old Index