mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
deref correct mbuf ptr to collect any vlan tag
Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
05aabdfcf1
commit
2307fc820c
1 changed files with 1 additions and 1 deletions
|
|
@ -1567,7 +1567,7 @@ nge_encap(sc, m_head, txidx)
|
|||
NGE_TXEXTSTS_UDPCSUM;
|
||||
}
|
||||
|
||||
mtag = VLAN_OUTPUT_TAG(&sc->arpcom.ac_if, m);
|
||||
mtag = VLAN_OUTPUT_TAG(&sc->arpcom.ac_if, m_head);
|
||||
if (mtag != NULL) {
|
||||
sc->nge_ldata->nge_tx_list[cur].nge_extsts |=
|
||||
(NGE_TXEXTSTS_VLANPKT|htons(VLAN_TAG_VALUE(mtag)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue