ipfilter: Close a bracket in the poolnode error message

When a node in a tree is discovered in error, i.e. duplicate, the
IP address of the node is printed but no closing bracket completes
the node in the message. Fix this.

(cherry picked from commit 858a7a27f5c82c8364a0eb8bf1d9f0b1315422aa)
This commit is contained in:
Cy Schubert 2024-11-07 08:48:00 -08:00
parent f9d3c2a443
commit ced92eab36

View file

@ -57,6 +57,7 @@ load_poolnode(int role, char *name, ip_pool_node_t *node, int ttl,
snprintf(msg, sizeof(msg), "%s pool(%s) node(%s/", what,
name, inet_ntoa(pn.ipn_addr.adf_addr.in4));
strlcat(msg, inet_ntoa(pn.ipn_mask.adf_addr.in4), sizeof(msg));
strcat(msg, ")");
return (ipf_perror_fd(pool_fd(), iocfunc, msg));
}
}