Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/inetd remove duplicated ipsec setup code. we alway...
details: https://anonhg.NetBSD.org/src/rev/1a3f04caed17
branches: trunk
changeset: 494214:1a3f04caed17
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Jul 03 23:37:17 2000 +0000
description:
remove duplicated ipsec setup code. we always call setup() on
socket reinitialization (like SIGHUP).
sync with kame.
diffstat:
usr.sbin/inetd/inetd.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diffs (36 lines):
diff -r 443dd60652f4 -r 1a3f04caed17 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c Mon Jul 03 23:30:33 2000 +0000
+++ b/usr.sbin/inetd/inetd.c Mon Jul 03 23:37:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inetd.c,v 1.62 2000/06/02 23:17:55 fvdl Exp $ */
+/* $NetBSD: inetd.c,v 1.63 2000/07/03 23:37:17 itojun Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
#if 0
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
#else
-__RCSID("$NetBSD: inetd.c,v 1.62 2000/06/02 23:17:55 fvdl Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.63 2000/07/03 23:37:17 itojun Exp $");
#endif
#endif /* not lint */
@@ -821,17 +821,6 @@
SWAP(char *, sep->se_argv[i], cp->se_argv[i]);
#ifdef IPSEC
SWAP(char *, sep->se_policy, cp->se_policy);
- if (sep->se_fd != -1) {
- if (ipsecsetup(sep->se_family, sep->se_fd,
- sep->se_policy) < 0 && sep->se_policy) {
- syslog(LOG_ERR, "%s/%s: "
- "ipsec initialization failed",
- sep->se_service, sep->se_proto);
- sep->se_checked = 0;
- sigsetmask(omask);
- continue;
- }
- }
#endif
SWAP(int, cp->se_type, sep->se_type);
SWAP(int, cp->se_max, sep->se_max);
Home |
Main Index |
Thread Index |
Old Index