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:
parent
4b660c6658
commit
0f1480e03b
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user