if_hn: fix use of uninitialized variable
omcast was used without being initialized in the non-multicast case. The only effect was that the interface's multicast output counter could be incorrect. Reported by: Coverity CID: 1379662 MFC after: 3 days Sponsored by: Dell EMC
This commit is contained in:
parent
16b51429d2
commit
7898a1f4c4
@ -5939,8 +5939,7 @@ hn_transmit(struct ifnet *ifp, struct mbuf *m)
|
||||
int obytes, omcast;
|
||||
|
||||
obytes = m->m_pkthdr.len;
|
||||
if (m->m_flags & M_MCAST)
|
||||
omcast = 1;
|
||||
omcast = (m->m_flags & M_MCAST) != 0;
|
||||
|
||||
if (sc->hn_xvf_flags & HN_XVFFLAG_ACCBPF) {
|
||||
if (bpf_peers_present(ifp->if_bpf)) {
|
||||
|
Loading…
Reference in New Issue
Block a user