From eaf23f0d10a3363b3003177172327ab54ac8a441 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 3 Jun 2020 23:15:28 +0200 Subject: [PATCH] fix bug introduced in d458f1a2223469e47081da dev is also used in pfpinhole.c and should be global --- miniupnpd/pf/obsdrdr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpd/pf/obsdrdr.c b/miniupnpd/pf/obsdrdr.c index 6a4b205..a1f8492 100644 --- a/miniupnpd/pf/obsdrdr.c +++ b/miniupnpd/pf/obsdrdr.c @@ -135,7 +135,8 @@ add_timestamp_entry(unsigned short eport, int proto, unsigned timestamp) } /* /dev/pf when opened */ -static int dev = -1; +extern int dev; /* global also used in pfpinhole.c */ +int dev = -1; /* shutdown_redirect() : * close the /dev/pf device */