From 7a52ea77aab18a797b206e0547dc8b0067c06387 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 4 Apr 2005 09:05:59 +0000 Subject: [PATCH] ipt_ACCOUNT: (tomj) fix for large networks --- linux/net/ipv4/netfilter/ipt_ACCOUNT.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/net/ipv4/netfilter/ipt_ACCOUNT.c b/linux/net/ipv4/netfilter/ipt_ACCOUNT.c index 71e5133..61855b2 100644 --- a/linux/net/ipv4/netfilter/ipt_ACCOUNT.c +++ b/linux/net/ipv4/netfilter/ipt_ACCOUNT.c @@ -714,9 +714,9 @@ int ipt_acc_handle_copy_data(void *to_user, int *pos, /* Temporary buffer full? Flush to userspace */ if (*pos+handle_ip_size >= PAGE_SIZE) { - *pos = 0; if (copy_to_user(to_user, ipt_acc_tmpbuf, *pos)) return -EFAULT; + *pos = 0; } memcpy(ipt_acc_tmpbuf+*pos, &handle_ip, handle_ip_size); *pos += handle_ip_size; -- 1.7.1