Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 275231 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +4 lines)
Line  Link Here
0
-- dhcp-3.1.1.orig/client/dhclient.c
0
++ dhcp-3.1.1/client/dhclient.c
Lines 2547-2554 void script_write_params (client, prefix Link Here
2547
					 (struct option_state *)0,
2547
					 (struct option_state *)0,
2548
					 lease -> options,
2548
					 lease -> options,
2549
					 &global_scope, oc, MDL)) {
2549
					 &global_scope, oc, MDL)) {
2550
		if (data.len > 3) {
2550
		struct iaddr netmask;
2551
			struct iaddr netmask, subnet, broadcast;
2551
		if (data.len > 3 && data.len <= sizeof(netmask.iabuf)) {
2552
			struct iaddr subnet, broadcast;
2552
2553
2553
			memcpy (netmask.iabuf, data.data, data.len);
2554
			memcpy (netmask.iabuf, data.data, data.len);
2554
			netmask.len = data.len;
2555
			netmask.len = data.len;

Return to bug 275231