summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-25 03:13:43 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-25 03:13:43 +0000
commitbe1533d6b2ff27227ea089d99ce2a6e88b8d77c5 (patch)
tree0aafb0c3f941b7df5d720d04984f324f65b62e3c
parent30ee50506bce60e5c22d45e85e9fa12a94363139 (diff)
missing return; noticed by Joris Vink <amni@pandora.be> but I fixed in
another way
-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);