You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by sc...@apache.org on 2026/06/09 13:44:23 UTC
(tomcat-connectors) 10/20: Use correct blocking around ifdefs
This is an automated email from the ASF dual-hosted git repository.
ChristopherSchultz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git
commit 7dfc5591305cbb3fc5a578f5faecd815ac036a1a
Author: Christopher Schultz <ch...@christopherschultz.net>
AuthorDate: Mon Jun 8 13:53:59 2026 -0400
Use correct blocking around ifdefs
---
native/common/jk_connect.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/native/common/jk_connect.c b/native/common/jk_connect.c
index 812231b2c..292091c96 100644
--- a/native/common/jk_connect.c
+++ b/native/common/jk_connect.c
@@ -1337,8 +1337,9 @@ char *jk_dump_sinfo(jk_sock_t sd, char *buf, size_t size)
struct sockaddr_in6 *insa = (struct sockaddr_in6 *)&lsaddr;
inet_ntop6((unsigned char *)&insa->sin6_addr, buf, size);
snprintf(pb, sizeof(pb), ":%u", ntohs(insa->sin6_port));
+ }
#endif
- } else {
+ else {
buf[0] = '\0';
snprintf(pb, sizeof(pb), "UnknownFamily");
}
@@ -1360,8 +1361,9 @@ char *jk_dump_sinfo(jk_sock_t sd, char *buf, size_t size)
struct sockaddr_in6 *insa = (struct sockaddr_in6 *)&rsaddr;
inet_ntop6((unsigned char *)&insa->sin6_addr, buf + ps, size - ps);
snprintf(pb, sizeof(pb), ":%u", ntohs(insa->sin6_port));
+ }
#endif
- } else {
+ else {
buf[ps] = '\0';
snprintf(pb, sizeof(pb), "UnknownFamily");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org