]> git.ipfire.org Git - thirdparty/openvpn.git/commit
pf: clean up temporary files if plugin init fails
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 1 Nov 2017 22:03:39 +0000 (23:03 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 24 Nov 2017 12:21:33 +0000 (13:21 +0100)
commitd2342067d95621b130dd3985a077872b032d53d2
treedd75e31ad580d5761fdaa56f87964b873942dace
parent88a827f25cb4a79f06597ca438f8f04d37a03d4e
pf: clean up temporary files if plugin init fails

close_instance() tries to remove the file in c2.pf.filename, but that only
works if we actually set that if we fail.  So, set that filename as soon
as we know we've created the file.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20171101220342.14648-2-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15705.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/pf.c
src/openvpn/pf.h