View | Details | Raw Unified | Return to bug 217391
Collapse All | Expand All

(-)b/sys/netpfil/ipfw/ip_fw_sockopt.c (-1 / +8 lines)
Lines 2669-2675 ref_opcode_object(struct ip_fw_chain *ch, ipfw_insn *cmd, struct tid_info *ti, Link Here
2669
		return (0);
2669
		return (0);
2670
	}
2670
	}
2671
2671
2672
	/* Found. Bump refcount and update kidx. */
2672
	/*
2673
	 * Object is already exist.
2674
	 * Its subtype should match with expected value.
2675
	 */
2676
	if (ti->type != no->subtype)
2677
		return (EINVAL);
2678
2679
	/* Bump refcount and update kidx. */
2673
	no->refcnt++;
2680
	no->refcnt++;
2674
	rw->update(cmd, no->kidx);
2681
	rw->update(cmd, no->kidx);
2675
	return (0);
2682
	return (0);

Return to bug 217391