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

(-)dhcp-3.1.2.ORIG/client/dhclient.c (-2 / +3 lines)
Lines 2550-2557 Link Here
2550
					 (struct option_state *)0,
2550
					 (struct option_state *)0,
2551
					 lease -> options,
2551
					 lease -> options,
2552
					 &global_scope, oc, MDL)) {
2552
					 &global_scope, oc, MDL)) {
2553
		if (data.len > 3) {
2553
		struct iaddr netmask;
2554
			struct iaddr netmask, subnet, broadcast;
2554
		if (data.len > 3 && data.len <= sizeof(netmask.iabuf)) {
2555
			struct iaddr subnet, broadcast;
2555
2556
2556
			memcpy (netmask.iabuf, data.data, data.len);
2557
			memcpy (netmask.iabuf, data.data, data.len);
2557
			netmask.len = data.len;
2558
			netmask.len = data.len;

Return to bug 275231