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

Collapse All | Expand All

(-)sys/netpfil/ipfilter/netinet/fil.c (-3 / +8 lines)
Lines 7931-7942 ipf_ipf_ioctl(ipf_main_softc_t *softc, caddr_t data, ioctlcmd_t cmd, int mode, Link Here
7931
					error = ipfattach(softc);
7931
					error = ipfattach(softc);
7932
				if (error == 0)
7932
				if (error == 0)
7933
					softc->ipf_running = 1;
7933
					softc->ipf_running = 1;
7934
				else
7934
				else {
7935
					RWLOCK_EXIT(&softc->ipf_global);
7935
					(void) ipfdetach(softc);
7936
					(void) ipfdetach(softc);
7937
					WRITE_ENTER(&softc->ipf_global);
7938
				}
7936
			} else {
7939
			} else {
7937
				if (softc->ipf_running == 1)
7940
				if (softc->ipf_running == 1) {
7941
					RWLOCK_EXIT(&softc->ipf_global);
7938
					error = ipfdetach(softc);
7942
					error = ipfdetach(softc);
7939
				else
7943
					WRITE_ENTER(&softc->ipf_global);
7944
				} else
7940
					error = 0;
7945
					error = 0;
7941
				if (error == 0)
7946
				if (error == 0)
7942
					softc->ipf_running = -1;
7947
					softc->ipf_running = -1;

Return to bug 282478