summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-27 14:49:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-27 14:49:02 +0200
commit8b4da71374a8b260057f8424f08e009df65c3f1e (patch)
tree80059fa66a4b9ade3f502de5350741eb34e6f7bd /src
parentddd868d44f84035c1cf75b9a9b72c9df94a99a2d (diff)
downloadfastd-8b4da71374a8b260057f8424f08e009df65c3f1e.tar
fastd-8b4da71374a8b260057f8424f08e009df65c3f1e.zip
Fix critical memory corruption bug in core
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c2
1 files changed, 1 insertions, 1 deletions
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;