ipfilter: Fix mismatch in array bounds.

Reported by:	GCC -Warray-parameter
Reviewed by:	imp, cy, emaste
Differential Revision:	https://reviews.freebsd.org/D37548
This commit is contained in:
John Baldwin 2022-12-07 12:32:38 -08:00
parent d256a06fe8
commit 415ccf5112

View File

@ -318,7 +318,7 @@ ipf_rx_attach_mask(ipf_rdx_node_t *node, ipf_rdx_mask_t *mask)
/* by the netmask. */
/* ------------------------------------------------------------------------ */
static ipf_rdx_node_t *
ipf_rx_insert(ipf_rdx_head_t *head, ipf_rdx_node_t *nodes, int *dup)
ipf_rx_insert(ipf_rdx_head_t *head, ipf_rdx_node_t nodes[2], int *dup)
{
ipf_rdx_mask_t **pmask;
ipf_rdx_node_t *node;