summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/control.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index 72db4f67745..e4a5a8c4b8f 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.27 2004/04/16 04:51:09 henning Exp $ */
+/* $OpenBSD: control.c,v 1.28 2004/04/25 03:13:42 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -115,10 +115,9 @@ control_accept(int listenfd)
len = sizeof(sun);
if ((connfd = accept(listenfd,
(struct sockaddr *)&sun, &len)) == -1) {
- if (errno == EWOULDBLOCK || errno == EINTR)
- return;
- else
+ if (errno != EWOULDBLOCK && errno != EINTR)
log_warn("session_control_accept");
+ return;
}
session_socket_blockmode(connfd, BM_NONBLOCK);