summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-10 15:15:49 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-10 15:15:49 +0000
commitca9bc431e47f19584636a3665e756a609163e145 (patch)
tree2d8b8326611a2a327f8c0e683eac14c863f3ba6c /usr.sbin/bgpd/bgpd.c
parent853ecc4e3fcf1f0cf0ee328c9746559bfa50ca20 (diff)
pass a pointer to the network list as well to session_main so we can free()
the members after fork
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 8cb2b376101..b3f94f52392 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.83 2004/03/10 14:45:24 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.84 2004/03/10 15:15:48 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -196,7 +196,8 @@ main(int argc, char *argv[])
/* fork children */
rde_pid = rde_main(&conf, peer_l, &net_l, rules_l, pipe_m2r, pipe_s2r);
- io_pid = session_main(&conf, peer_l, rules_l, pipe_m2s, pipe_s2r);
+ io_pid = session_main(&conf, peer_l, &net_l, rules_l, pipe_m2s,
+ pipe_s2r);
setproctitle("parent");