From 664ff4ce4b3c44a35c669b1c8956839c647c29b1 Mon Sep 17 00:00:00 2001 From: bluhm Date: Fri, 19 Jan 2018 15:33:27 +0000 Subject: [PATCH] In pfioctl() a pf unlock was missing in the error path. OK lteo@ sashan@ --- sys/net/pf_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index ece193752a8..48e555b4261 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.326 2017/11/28 16:05:46 bluhm Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.327 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++; -- 2.20.1