summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-02-17 23:21:22 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-02-17 23:21:22 +0000
commitaab3c6ba873eb650ad3e748e2fba250716eb85d8 (patch)
tree85e40290ea1613b59a8b8e63a4186143c6df8163 /usr.sbin/bgpd
parent4672a063612df25e1ac15b7baabdb6f78bcf4141 (diff)
init wbuf.sock too in init_peer()
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index bd4e9fff61d..bb911074788 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.115 2004/02/17 21:59:09 henning Exp $ */
+/* $OpenBSD: session.c,v 1.116 2004/02/17 23:21:21 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -363,7 +363,7 @@ init_conf(struct bgpd_config *c)
void
init_peer(struct peer *p)
{
- p->sock = -1;
+ p->sock = p->wbuf.sock = -1;
change_state(p, STATE_IDLE, EVNT_NONE);
p->IdleHoldTimer = time(NULL); /* start ASAP */