From 658111f89762ea2c7dbbbf88f6d2310da347741b Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 19 Dec 2003 16:46:08 +0000 Subject: when adding a new peer during reconfiguration set its sock to -1. misbehaviour found by claudio --- usr.sbin/bgpd/session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/session.c') 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 @@ -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; -- cgit v1.2.3