summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2005-12-28 19:18:44 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2005-12-28 19:18:44 +0000
commit14d7c9e8762315637c9ca3742901cfee3ed79cdf (patch)
tree9ed53c406e99cd84aeab2afd9c4c8c72e779d827 /sbin
parentd3810827a7c88ca5265ee0f3eb9cf445a0235128 (diff)
no close() after fdopen(); ok hshoexer@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsecctl/ike.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c
index 44a3e7934b6..8ad16893049 100644
--- a/sbin/ipsecctl/ike.c
+++ b/sbin/ipsecctl/ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.c,v 1.12 2005/12/28 10:53:12 hshoexer Exp $ */
+/* $OpenBSD: ike.c,v 1.13 2005/12/28 19:18:43 naddy Exp $ */
/*
* Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -373,7 +373,6 @@ ike_ipsec_establish(int action, struct ipsec_rule *r)
errx(1, "ike_ipsec_establish: %s not a fifo", ISAKMPD_FIFO);
if ((fdp = fdopen(fd, "w")) == NULL)
err(1, "ike_ipsec_establish: fdopen(%s)", ISAKMPD_FIFO);
- close(fd);
switch (action) {
case ACTION_ADD: