mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
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:
parent
bc76350ef9
commit
51e1b50529
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44456
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
|
* @(#)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;
|
return;
|
||||||
m->m_len = sizeof(*ea);
|
m->m_len = sizeof(*ea);
|
||||||
m->m_pkthdr.len = sizeof(*ea);
|
m->m_pkthdr.len = sizeof(*ea);
|
||||||
|
m->m_pkthdr.rcvif = (struct ifnet *)0;
|
||||||
MH_ALIGN(m, sizeof(*ea));
|
MH_ALIGN(m, sizeof(*ea));
|
||||||
ea = mtod(m, struct ether_arp *);
|
ea = mtod(m, struct ether_arp *);
|
||||||
eh = (struct ether_header *)sa.sa_data;
|
eh = (struct ether_header *)sa.sa_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user