From: bluhm Date: Fri, 19 Jan 2018 15:33:27 +0000 (+0000) Subject: In pfioctl() a pf unlock was missing in the error path. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=664ff4ce4b3c44a35c669b1c8956839c647c29b1;p=openbsd In pfioctl() a pf unlock was missing in the error path. OK lteo@ sashan@ --- 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++;