git: ced92eab36f3 - stable/14 - ipfilter: Close a bracket in the poolnode error message

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 00:26:49 UTC
The branch stable/14 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=ced92eab36f37e4babacbee72e708af02af87a05

commit ced92eab36f37e4babacbee72e708af02af87a05
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-11-07 16:48:00 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-11-19 00:26:05 +0000

    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)
---
 sbin/ipf/libipf/load_poolnode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbin/ipf/libipf/load_poolnode.c b/sbin/ipf/libipf/load_poolnode.c
index 7a01da9df94b..0e41a3921b71 100644
--- a/sbin/ipf/libipf/load_poolnode.c
+++ b/sbin/ipf/libipf/load_poolnode.c
@@ -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));
 		}
 	}