FreeBSD Bugzilla – Attachment 11221 Details for
Bug 22177
in_arpinput() doesn't call m_pullup() while it should
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 472 bytes, created by
Yar Tikhiy
on 2000-10-21 10:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yar Tikhiy
Created:
2000-10-21 10:50:01 UTC
Size:
472 bytes
patch
obsolete
>--- netinet/if_ether.c.orig Tue Apr 11 11:08:35 2000 >+++ netinet/if_ether.c Fri Oct 20 03:03:23 2000 >@@ -506,6 +506,12 @@ > struct in_addr isaddr, itaddr, myaddr; > int op; > >+ if (m->m_len < sizeof(struct ether_arp) && >+ (m = m_pullup(m, sizeof(struct ether_arp))) == NULL) { >+ log(LOG_ERR, "arp: runt packet -- m_pullup failed\n"); >+ return; >+ } >+ > ea = mtod(m, struct ether_arp *); > op = ntohs(ea->arp_op); > (void)memcpy(&isaddr, ea->arp_spa, sizeof (isaddr));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22177
: 11221