FreeBSD Bugzilla – Attachment 8382 Details for
Bug 17583
NETATALK code can corrupt mbuf free lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 725 bytes, created by
iedowse
on 2000-03-24 18:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
iedowse
Created:
2000-03-24 18:10:01 UTC
Size:
725 bytes
patch
obsolete
>--- aarp.c.orig Fri Mar 24 16:26:08 2000 >+++ aarp.c Fri Mar 24 17:48:12 2000 >@@ -393,12 +393,20 @@ > sizeof( ea->aarp_sha )); > aat->aat_flags |= ATF_COM; > if ( aat->aat_hold ) { >+ struct mbuf *mhold; >+ >+ /* >+ * We must NULL out the aat->aat_hold pointer, since otherwise >+ * if_output may call aarpresolve() which could m_freem() it. >+ */ >+ mhold = aat->aat_hold; >+ aat->aat_hold = NULL; >+ > sat.sat_len = sizeof(struct sockaddr_at); > sat.sat_family = AF_APPLETALK; > sat.sat_addr = spa; >- (*ac->ac_if.if_output)( &ac->ac_if, aat->aat_hold, >+ (*ac->ac_if.if_output)( &ac->ac_if, mhold, > (struct sockaddr *)&sat, NULL); /* XXX */ >- aat->aat_hold = 0; > } > }
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 17583
: 8382