summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@cvs.openbsd.org>2020-10-22 12:25:21 +0000
committerAlexandr Nedvedicky <sashan@cvs.openbsd.org>2020-10-22 12:25:21 +0000
commit29c23e60159ded710839369b0cc66fedab574b04 (patch)
tree5d50fee7b2242cf010b7df7444ed41bc6b893651
parent0ddeef2ac7eab5a211469c98f64586aa2019f62d (diff)
- missing NET_UNLOCK() in pf_ioctl.c error path
Reported-by: syzbot+b9af9c29ed1a6dabda25@syzkaller.appspotmail.com OK anton@
-rw-r--r--sys/net/pf_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index 3a117a7d1c7..27315239807 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.359 2020/10/21 08:08:04 sashan Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.360 2020/10/22 12:25:20 sashan Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1788,6 +1788,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
if (error) {
free(pstore, M_TEMP, sizeof(*pstore));
PF_STATE_EXIT_READ();
+ NET_UNLOCK();
goto fail;
}
p++;