Fix #568, Insufficient condition in ff_rte_frm_extcl function.

This commit is contained in:
freak82 2021-01-15 16:22:11 +08:00 committed by fengbojiang
parent b2b09b1a1e
commit 0816b9cb45
1 changed files with 3 additions and 2 deletions

View File

@ -448,8 +448,9 @@ void * ff_mbuf_mtod(void* bsd_mbuf)
void* ff_rte_frm_extcl(void* mbuf)
{
struct mbuf *bsd_mbuf = mbuf;
if ( bsd_mbuf->m_ext.ext_type==EXT_DISPOSABLE && bsd_mbuf->m_ext.ext_free==ff_mbuf_ext_free ){
if ( (bsd_mbuf->m_flags & M_EXT) &&
bsd_mbuf->m_ext.ext_type == EXT_DISPOSABLE && bsd_mbuf->m_ext.ext_free == ff_mbuf_ext_free ) {
return bsd_mbuf->m_ext.ext_arg1;
}
else