Bugzilla – Attachment 397166 Details for
Bug 631305
dhcrelay segfaults at first request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
Patch fixing the segfault and discarding packeds on interfaces without IP
dhcp-4.1.1-P1-relay-no-ip-on-interface.diff (text/plain), 411 bytes, created by
Marius Tomaschewski
on 2010-10-26 20:22:38 UTC
(
hide
)
Description:
Patch fixing the segfault and discarding packeds on interfaces without IP
Filename:
MIME Type:
Creator:
Marius Tomaschewski
Created:
2010-10-26 20:22:38 UTC
Size:
411 bytes
patch
obsolete
>--- relay/dhcrelay.c >+++ relay/dhcrelay.c 2010/10/26 20:10:01 >@@ -565,6 +565,10 @@ do_relay4(struct interface_info *ip, str > log_info("Discarding packet with invalid hlen."); > return; > } >+ if (ip->address_count < 1 || ip->addresses == NULL) { >+ log_info("Discarding packet from interface without IP address"); >+ return; >+ } > > /* Find the interface that corresponds to the giaddr > in the packet. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 631305
: 397166