Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 typo. From: Arto Selonen <arto%selonen.org@localhost>, s...



details:   https://anonhg.NetBSD.org/src/rev/d1b400b9fb2c
branches:  trunk
changeset: 534658:d1b400b9fb2c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Aug 01 05:17:47 2002 +0000

description:
typo.  From: Arto Selonen <arto%selonen.org@localhost>, sync w/kame

diffstat:

 sys/netinet6/ipsec.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 4450a95b2028 -r d1b400b9fb2c sys/netinet6/ipsec.c
--- a/sys/netinet6/ipsec.c      Thu Aug 01 03:40:34 2002 +0000
+++ b/sys/netinet6/ipsec.c      Thu Aug 01 05:17:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec.c,v 1.63 2002/07/18 11:59:10 wiz Exp $   */
+/*     $NetBSD: ipsec.c,v 1.64 2002/08/01 05:17:47 itojun Exp $        */
 /*     $KAME: ipsec.c,v 1.136 2002/05/19 00:36:39 itojun Exp $ */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.63 2002/07/18 11:59:10 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.64 2002/08/01 05:17:47 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -1667,7 +1667,7 @@
 
        case IPSEC_POLICY_ENTRUST:
        default:
-               panic("ipsec_hdrsiz: Invalid policy found. %d\n", sp->policy);
+               panic("ipsec_in_reject: Invalid policy found. %d\n", sp->policy);
        }
 
        need_auth = 0;
@@ -1746,9 +1746,9 @@
        else
                sp = ipsec4_getpolicybysock(m, IPSEC_DIR_INBOUND, so, &error);
 
+       /* XXX should be panic ? -> No, there may be error. */
        if (sp == NULL)
-               return 0;       /* XXX should be panic ?
-                                * -> No, there may be error. */
+               return 0;
 
        result = ipsec_in_reject(sp, m);
        KEYDEBUG(KEYDEBUG_IPSEC_STAMP,



Home | Main Index | Thread Index | Old Index