1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 09:58:32 +03:00

[package] uhttpd: do not dispatch pipe error events, fixes use after free for cgi and lua scripts

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32644 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-07-07 16:43:27 +00:00
parent eb9c638ec8
commit 61cbda806f

View File

@ -573,9 +573,13 @@ static void uh_pipe_cb(struct uloop_fd *u, unsigned int events)
{
struct client *cl = container_of(u, struct client, pipe);
D("SRV: Client(%d) pipe(%d) readable\n", cl->fd.fd, cl->pipe.fd);
if (!u->error)
{
D("SRV: Client(%d) pipe(%d) readable\n",
cl->fd.fd, cl->pipe.fd);
uh_client_cb(&cl->fd, ULOOP_WRITE);
uh_client_cb(&cl->fd, ULOOP_WRITE);
}
}
static void uh_child_cb(struct uloop_process *p, int rv)