summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2005-05-23 22:21:57 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2005-05-23 22:21:57 +0000
commit7780cbc18701fa3c0937107a890ccc5a13afca9f (patch)
treedca09f11ca2cef9fa61c4d3751ec5b7cab889822 /sbin
parente30c5d8aca9ff26b58816a190865a843e3b5f6dd (diff)
endpwent() after last use. hshoexer@ ok
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c
index 60a2d85eec4..f7163418d4c 100644
--- a/sbin/isakmpd/monitor.c
+++ b/sbin/isakmpd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.45 2005/05/10 11:12:50 hshoexer Exp $ */
+/* $OpenBSD: monitor.c,v 1.46 2005/05/23 22:21:56 ho Exp $ */
/*
* Copyright (c) 2003 Håkan Olsson. All rights reserved.
@@ -108,8 +108,8 @@ monitor_init(int debug)
if (pw == NULL)
log_fatalx("monitor_init: getpwnam(\"%s\") failed",
ISAKMPD_PRIVSEP_USER);
- endpwent();
strlcpy(m_state.root, pw->pw_dir, sizeof m_state.root);
+ endpwent();
set_monitor_signals();
m_state.pid = fork();