From 0cf4c4bf2d5d714d82daecd2fccb79a7163466b4 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 16 May 2021 18:13:40 -0700 Subject: [PATCH] Fix the printf format for the "ERROR ... connecting to passthru socket" Was passing the address string twice, so the port appeared as an invalid number. --- src/sbbs3/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 9610629534..97054dd308 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -5708,7 +5708,7 @@ NO_SSH: if(result != 0) { inet_ntop(tmp_addr.sin_family, &tmp_addr.sin_addr, addr_str, sizeof(addr_str)); lprintf(LOG_ERR,"Node %d !ERROR %d (%d) connecting to passthru socket: %s port %u" - ,new_node->cfg.node_num, result, ERROR_VALUE, addr_str, addr_str, htons(tmp_addr.sin_port)); + ,new_node->cfg.node_num, result, ERROR_VALUE, addr_str, htons(tmp_addr.sin_port)); close_socket(new_node->passthru_socket); new_node->passthru_socket=INVALID_SOCKET; close_socket(tmp_sock); -- GitLab