diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-15 14:38:16 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-15 14:38:19 +0100 |
commit | 3675d407ecf4908a231eb6bde6bb6408f20a9e81 (patch) | |
tree | ca6577c4328f0a082bbd93e7357ffeb2de08986e /relay.c | |
parent | c9e849b50162fadb1ebaaedba7a743040c9f299f (diff) |
relay: add a missing buffer availability check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'relay.c')
-rw-r--r-- | relay.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -76,6 +76,9 @@ static void relay_process_headers(struct relay *r) char *val; buf = ustream_get_read_buf(s, &len); + if (!buf || !len) + break; + newline = strchr(buf, '\n'); if (!newline) break; |