diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-19 16:46:08 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-19 16:46:08 +0000 |
commit | 658111f89762ea2c7dbbbf88f6d2310da347741b (patch) | |
tree | 34008160b2843610f22ef42122b050540fc79eae /usr.sbin/bgpd/session.c | |
parent | d218be396662398cc925df1a7c6ab19c3c3eb7ad (diff) |
when adding a new peer during reconfiguration set its sock to -1.
misbehaviour found by claudio
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index f7545e9336d..4aeac90694a 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.7 2003/12/19 11:25:18 henning Exp $ */ +/* $OpenBSD: session.c,v 1.8 2003/12/19 16:46:07 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -1221,6 +1221,7 @@ session_dispatch_imsg(int fd, int idx) NULL) fatal("new_peer", errno); p->state = STATE_NONE; + p->sock = -1; p->next = nconf->peers; nconf->peers = p; reconf = RECONF_REINIT; |