Merge ipcomp_input.c:1.9 from HEAD to RELENG_6:

In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
  may be a stale pointer at this point, and we're interested in whether or
  not m_pulldown() failed.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
This commit is contained in:
rwatson 2006-02-14 21:36:23 +00:00
parent 4b660c6658
commit 0f1480e03b

View File

@ -258,7 +258,7 @@ ipcomp6_input(mp, offp, proto)
off = *offp;
md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
if (!m) {
if (!md) {
m = NULL; /* already freed */
ipseclog((LOG_DEBUG, "IPv6 IPComp input: assumption failed "
"(pulldown failure)\n"));