mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
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:
parent
f9d3c2a443
commit
ced92eab36
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue