summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/relayd/relay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 83d5c5c7ce7..6155b5331ba 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.139 2011/09/04 09:55:10 bluhm Exp $ */
+/* $OpenBSD: relay.c,v 1.140 2011/09/04 10:42:47 bluhm Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -1892,7 +1892,8 @@ relay_error(struct bufferevent *bev, short error, void *arg)
dst = EVBUFFER_OUTPUT(cre->dst->bev);
if (EVBUFFER_LENGTH(dst))
return;
- }
+ } else
+ return;
relay_close(con, "done");
return;