arprequest() allocates an mbuf with m_gethdr() but does not initialize

m->m_pkthdr.rcvif to NULL. Bad arprequest(). No biscuit.
This commit is contained in:
Bill Paul 1999-03-04 04:03:57 +00:00
parent bc76350ef9
commit 51e1b50529
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
* $Id: if_ether.c,v 1.53 1999/02/16 10:49:51 dfr Exp $
* $Id: if_ether.c,v 1.54 1999/02/20 11:18:00 julian Exp $
*/
/*
@ -292,6 +292,7 @@ arprequest(ac, sip, tip, enaddr)
return;
m->m_len = sizeof(*ea);
m->m_pkthdr.len = sizeof(*ea);
m->m_pkthdr.rcvif = (struct ifnet *)0;
MH_ALIGN(m, sizeof(*ea));
ea = mtod(m, struct ether_arp *);
eh = (struct ether_header *)sa.sa_data;