summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-02-17 15:47:25 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-02-17 15:47:25 +0000
commitf2784f72dd492584d6b7e0667047ae3c37b8ee30 (patch)
tree4e4eed56680ed7bdc66362332d8bc4fed61df398 /usr.sbin/bgpd/session.c
parent41b4a2e897b4ed52e23021ce03853d0487ca1878 (diff)
On write error return and do not try to make a read. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index f46c42acc6f..cf70fe3ec32 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.111 2004/02/17 14:40:16 henning Exp $ */
+/* $OpenBSD: session.c,v 1.112 2004/02/17 15:47:24 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1125,6 +1125,7 @@ session_dispatch_msg(struct pollfd *pfd, struct peer *p)
else
log_peer_warn(&p->conf, "Write error");
bgp_fsm(p, EVNT_CON_FATAL);
+ return (1);
}
if (!(pfd->revents & POLLIN))
return (1);