From 8b4da71374a8b260057f8424f08e009df65c3f1e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 27 Jun 2012 14:49:02 +0200 Subject: Fix critical memory corruption bug in core --- src/fastd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 80476b7..6a326fb 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -601,7 +601,7 @@ static void handle_resolv_returns(fastd_context *ctx) { } static void handle_input(fastd_context *ctx) { - struct pollfd fds[3]; + struct pollfd fds[4]; fds[0].fd = ctx->tunfd; fds[0].events = POLLIN; fds[1].fd = ctx->sockfd; -- cgit v1.2.3