summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-27 11:43:10 -0300
committerRenato Botelho <renato@netgate.com>2015-08-27 11:43:10 -0300
commit407265cbbfd4ae4c56f3eb0185c4e11ca243ebd5 (patch)
treec1feaae5d82382d69b6e7d1d41777917ec50c501 /sys/netpfil
parent8390248e17013b5f30470b9903021037847cbf9a (diff)
parent731978cbcf55c0b2c8e403cd20d662a337217a58 (diff)
downloadFreeBSD-src-407265cbbfd4ae4c56f3eb0185c4e11ca243ebd5.zip
FreeBSD-src-407265cbbfd4ae4c56f3eb0185c4e11ca243ebd5.tar.gz
Merge branch 'stable/10' into devel
Catch up with proper fix for pf_increase_self_table_size.diff (r287207)
Diffstat (limited to 'sys/netpfil')
-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