Skip to content

Commit

Permalink
re-initialize mopt in ip6_insert_jumboopt().
Browse files Browse the repository at this point in the history
From: csapuntz@stanford.edu
  • Loading branch information
itojun committed Mar 25, 2001
1 parent 98dfde7 commit 39f70e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kame/sys/netinet6/ip6_output.c
@@ -1,4 +1,4 @@
/* $KAME: ip6_output.c,v 1.171 2001/03/21 07:30:48 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.
Expand Down Expand Up @@ -1516,7 +1516,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;
Expand Down

0 comments on commit 39f70e5

Please sign in to comment.