deref correct mbuf ptr to collect any vlan tag

Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
Sam Leffler 2005-03-26 18:47:17 +00:00
parent 05aabdfcf1
commit 2307fc820c

View file

@ -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)));