mirror of
https://github.com/opnsense/src.git
synced 2026-03-19 17:29:02 -04:00
Import a fix from the OpenBSD-stable branch, that slipped by my previous
import. Sorry.
This commit is contained in:
parent
bf47a23754
commit
61ba182027
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: pf_ioctl.c,v 1.112.2.1 2004/04/30 21:43:30 brad Exp $ */
|
||||
/* $OpenBSD: pf_ioctl.c,v 1.112.2.2 2004/07/24 18:28:12 brad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Daniel Hartmeier
|
||||
|
|
@ -1236,7 +1236,8 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
|
|||
while ((oldrule != NULL) && (oldrule->nr != pcr->nr))
|
||||
oldrule = TAILQ_NEXT(oldrule, entries);
|
||||
if (oldrule == NULL) {
|
||||
pf_rm_rule(NULL, newrule);
|
||||
if (newrule != NULL)
|
||||
pf_rm_rule(NULL, newrule);
|
||||
error = EINVAL;
|
||||
splx(s);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue