ustream: set the right EOF flag
authorFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jan 2013 15:43:44 +0000 (16:43 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jan 2013 16:02:49 +0000 (17:02 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-fd.c

index e39da98e3d5ccfa120b7f4a5ee8e6845626dd0f9..6f8f561da0fb58bc44379c1f116ad4390c78b18d 100644 (file)
@@ -71,7 +71,7 @@ static void ustream_fd_read_pending(struct ustream_fd *sf, bool *more)
                }
 
                if (!len) {
-                       sf->fd.eof = true;
+                       s->eof = true;
                        ustream_state_change(s);
                        ustream_fd_set_uloop(s, false);
                        return;