diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-08-11 06:42:07 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-08-11 06:42:07 +0000 |
commit | 38c861d09dd44610febe65dab2d15979496d72f8 (patch) | |
tree | c6567294fccf2b8d6a83eab16e095cadafa8d46c /usr.sbin/relayd/relay.c | |
parent | 44fab68a9c993afb3ef1a9e1aef479182af58d62 (diff) |
add missing 'break' to read HTTP content correctly
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r-- | usr.sbin/relayd/relay.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 9f1d52764dc..fb83a7cebb7 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.101 2008/08/08 22:49:33 reyk Exp $ */ +/* $OpenBSD: relay.c,v 1.102 2008/08/11 06:42:06 reyk Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -1504,8 +1504,10 @@ relay_read_http(struct bufferevent *bev, void *arg) case HTTP_METHOD_PUT: case HTTP_METHOD_RESPONSE: /* HTTP request payload */ - if (cre->toread) + if (cre->toread) { bev->readcb = relay_read_httpcontent; + break; + } /* Single-pass HTTP response */ bev->readcb = relay_read; |