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 8f47023f508..8c02fbfd568 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.99 2008/08/08 19:13:24 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.100 2008/08/08 20:34:30 reyk Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -1188,7 +1188,8 @@ relay_read_httpchunks(struct bufferevent *bev, void *arg)
if (!cre->toread) {
line = evbuffer_readline(src);
if (line == NULL) {
- relay_close(con, "invalid chunk");
+ /* Ignore empty line, continue */
+ bufferevent_enable(bev, EV_READ);
return;
}
if (!strlen(line)) {