git: 0195893f9408 - stable/13 - ipfilter: Close a bracket in the poolnode error message

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

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

commit 0195893f9408e043505dd8599ebbcbc8e843c302
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:27:07 +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));
 		}
 	}