View | Details | Raw Unified | Return to bug 222953 | Differences between
and this patch

Collapse All | Expand All

(-)sbin/ipfw/tables.c (+2 lines)
Lines 885-890 table_do_modify_record(int cmd, ipfw_obj_header *o Link Here
885
885
886
	sz += sizeof(*oh);
886
	sz += sizeof(*oh);
887
	error = do_get3(cmd, &oh->opheader, &sz);
887
	error = do_get3(cmd, &oh->opheader, &sz);
888
	if (error != 0)
889
		error = errno;
888
	tent = (ipfw_obj_tentry *)(ctlv + 1);
890
	tent = (ipfw_obj_tentry *)(ctlv + 1);
889
	/* Copy result back to provided buffer */
891
	/* Copy result back to provided buffer */
890
	memcpy(tent_base, ctlv + 1, sizeof(*tent) * count);
892
	memcpy(tent_base, ctlv + 1, sizeof(*tent) * count);

Return to bug 222953