summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2015-11-18 10:33:12 -0600
committerMatt Smith <mgsmith@netgate.com>2015-11-18 10:33:12 -0600
commita917c4d35dbd195335ad4dd4abebc76aac95650d (patch)
tree8049fdcb22b469678f12c63c3c58324cedc0782e
parentf30917567e3eaa326944f678f1355bf733deba3d (diff)
downloadFreeBSD-src-a917c4d35dbd195335ad4dd4abebc76aac95650d.zip
FreeBSD-src-a917c4d35dbd195335ad4dd4abebc76aac95650d.tar.gz
Importing pfSense patch pf_increase_self_table_size.diff
-rw-r--r--sys/netpfil/pf/pf_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf_if.c b/sys/netpfil/pf/pf_if.c
index 91fbeb8..d1214fa 100644
--- a/sys/netpfil/pf/pf_if.c
+++ b/sys/netpfil/pf/pf_if.c
@@ -578,7 +578,7 @@ pfi_address_add(struct sockaddr *sa, int af, int net)
__func__, V_pfi_buffer_cnt, PFI_BUFFER_MAX);
return;
}
- memcpy(V_pfi_buffer, p, V_pfi_buffer_cnt * sizeof(*V_pfi_buffer));
+ memcpy(p, V_pfi_buffer, V_pfi_buffer_max * sizeof(*V_pfi_buffer));
/* no need to zero buffer */
free(V_pfi_buffer, PFI_MTYPE);
V_pfi_buffer = p;
OpenPOWER on IntegriCloud