summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde.c4
-rw-r--r--usr.sbin/bgpd/session.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 15a740cddfb..b6e3d8231a9 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.159 2005/05/03 07:01:23 djm Exp $ */
+/* $OpenBSD: rde.c,v 1.160 2005/05/23 22:45:02 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -152,8 +152,6 @@ rde_main(struct bgpd_config *config, struct peer *peer_l,
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
- endpwent();
-
signal(SIGTERM, rde_sighdlr);
signal(SIGINT, rde_sighdlr);
signal(SIGPIPE, SIG_IGN);
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 5969a5d7981..c2146b5b864 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.217 2005/05/03 07:01:23 djm Exp $ */
+/* $OpenBSD: session.c,v 1.218 2005/05/23 22:45:02 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -215,8 +215,6 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
- endpwent();
-
listener_cnt = 0;
setup_listeners(&listener_cnt);