artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9eba91
)
In pfioctl() a pf unlock was missing in the error path.
author
bluhm
<bluhm@openbsd.org>
Fri, 19 Jan 2018 15:33:27 +0000
(15:33 +0000)
committer
bluhm
<bluhm@openbsd.org>
Fri, 19 Jan 2018 15:33:27 +0000
(15:33 +0000)
OK lteo@ sashan@
sys/net/pf_ioctl.c
patch
|
blob
|
history
diff --git
a/sys/net/pf_ioctl.c
b/sys/net/pf_ioctl.c
index
ece1937
..
48e555b
100644
(file)
--- a/
sys/net/pf_ioctl.c
+++ b/
sys/net/pf_ioctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pf_ioctl.c,v 1.32
6 2017/11/28 16:05:46
bluhm Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.32
7 2018/01/19 15:33:27
bluhm Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@
-1700,6
+1700,7
@@
pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
error = copyout(pstore, p, sizeof(*p));
if (error) {
free(pstore, M_TEMP, sizeof(*pstore));
+ PF_UNLOCK();
goto fail;
}
p++;