From 2fb1887b3147a142af44c7f46c899362c071bb94 Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 25 Mar 2001 09:58:43 +0000 Subject: [PATCH] re-initialize mopt in ip6_insert_jumboopt(). sync with kame From: csapuntz@stanford.edu --- sys/netinet6/ip6_output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index c2e08e130aa9..185f2f9d7567 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,5 +1,5 @@ -/* $NetBSD: ip6_output.c,v 1.32 2001/03/21 07:52:14 itojun Exp $ */ -/* $KAME: ip6_output.c,v 1.171 2001/03/21 07:30:48 itojun Exp $ */ +/* $NetBSD: ip6_output.c,v 1.33 2001/03/25 09:58:43 itojun Exp $ */ +/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1152,7 +1152,7 @@ ip6_insert_jumboopt(exthdrs, plen) oldoptlen); optbuf = mtod(n, caddr_t) + oldoptlen; m_freem(mopt); - exthdrs->ip6e_hbh = n; + mopt = exthdrs->ip6e_hbh = n; } else { optbuf = mtod(mopt, u_char *) + mopt->m_len; mopt->m_len += JUMBOOPTLEN;