summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Steele <brynet@cvs.openbsd.org>2018-11-08 17:19:02 +0000
committerBryan Steele <brynet@cvs.openbsd.org>2018-11-08 17:19:02 +0000
commit77d35d6989cd13033d4e8f4d5c8c33299c34d02f (patch)
tree4f6c271184286f28035a5f6ad5254459454ccec8
parent87db1e687f9a765f90d649565a4ef4a234b02bff (diff)
Close the fingerprints file in the child after it has been loaded.
I missed this part in my previous commit.
-rw-r--r--usr.sbin/tcpdump/pfctl_osfp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/pfctl_osfp.c b/usr.sbin/tcpdump/pfctl_osfp.c
index c337cc5e20c..aaead627535 100644
--- a/usr.sbin/tcpdump/pfctl_osfp.c
+++ b/usr.sbin/tcpdump/pfctl_osfp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_osfp.c,v 1.14 2018/11/08 14:06:09 brynet Exp $ */
+/* $OpenBSD: pfctl_osfp.c,v 1.15 2018/11/08 17:19:01 brynet Exp $ */
/*
* Copyright (c) 2003 Mike Frantzen <frantzen@openbsd.org>
@@ -255,6 +255,7 @@ pfctl_file_fingerprints(int dev, int opts, const char *fp_filename)
if (opts & PF_OPT_VERBOSE2)
printf("Loaded %d passive OS fingerprints\n",
fingerprint_count);
+ fclose(in);
return (0);
}