Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 sizeof mistake in DIAGNOSTIC path. sync w/kame



details:   https://anonhg.NetBSD.org/src/rev/1d87f4a27203
branches:  trunk
changeset: 533118:1d87f4a27203
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jun 21 23:15:35 2002 +0000

description:
sizeof mistake in DIAGNOSTIC path.  sync w/kame
From: YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost>

diffstat:

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

diffs (27 lines):

diff -r 55a6098e90ff -r 1d87f4a27203 sys/netinet6/ipsec.c
--- a/sys/netinet6/ipsec.c      Fri Jun 21 22:57:55 2002 +0000
+++ b/sys/netinet6/ipsec.c      Fri Jun 21 23:15:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec.c,v 1.58 2002/06/16 16:28:36 itojun Exp $        */
+/*     $NetBSD: ipsec.c,v 1.59 2002/06/21 23:15:35 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.58 2002/06/16 16:28:36 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.59 2002/06/21 23:15:35 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -3419,7 +3419,7 @@
 
        n = m_aux_find(m, AF_INET, IPPROTO_ESP);
 #ifdef DIAGNOSTIC
-       if (n && n->m_len < sizeof(struct socket *))
+       if (n && n->m_len < sizeof(struct ipsecaux))
                panic("invalid ipsec m_aux");
 #endif
        return n;



Home | Main Index | Thread Index | Old Index