summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-04-10 19:59:03 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-04-10 19:59:03 +0000
commit82a6fff0b2c9bae6d0ac14723f365860b0f609b8 (patch)
tree6b0a49719d21021e4d8134d8aac39a505763e743 /usr.sbin/tcpdump
parent425400ebe9e9e61f582209bfacb79c1b86a905bc (diff)
do not forget to call endpwent(). ok moritz@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/privsep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c
index 3cfd52879b0..d2326c671d7 100644
--- a/usr.sbin/tcpdump/privsep.c
+++ b/usr.sbin/tcpdump/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.15 2005/04/10 16:10:37 moritz Exp $ */
+/* $OpenBSD: privsep.c,v 1.16 2005/04/10 19:59:02 otto Exp $ */
/*
* Copyright (c) 2003 Can Erkin Acar
@@ -157,6 +157,7 @@ priv_init(int argc, char **argv)
pw = getpwnam("_tcpdump");
if (pw == NULL)
errx(1, "unknown user _tcpdump");
+ endpwent();
/* chroot, drop privs and return */
if (chroot(pw->pw_dir) != 0)