Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
4a705a4667fea6e699d7965a94fad04d47227ab4...54de9ce32a60a3ec38fcd41d06c33adec1cef886
Commits (1)
Fix the printf format for the "ERROR ... connecting to passthru socket"
· 54de9ce3
Rob Swindell
authored
May 16, 2021
Was passing the address string twice, so the port appeared as an invalid number.
54de9ce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/main.cpp
src/sbbs3/main.cpp
+1
-1
No files found.
src/sbbs3/main.cpp
View file @
54de9ce3
...
...
@@ -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
);
...
...