X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=relay.c;h=ba6b95a496ea4e2cfa6f066a1d5a78bad8555c0a;hp=5de5cb403df735f4bdfd1d7de6ed421a59305ce4;hb=56278d4af64256e703a6c4cf3d854aac689c391c;hpb=3560e89406c81814254bdb45db19498387265cb7 diff --git a/relay.c b/relay.c index 5de5cb4..ba6b95a 100644 --- a/relay.c +++ b/relay.c @@ -130,6 +130,9 @@ static void relay_read_cb(struct ustream *s, int bytes) } buf = ustream_get_read_buf(s, &len); + if (!buf || !len) + return; + uh_chunk_write(cl, buf, len); ustream_consume(s, len); }