From a24106a2c03c42b2f8af9e36854d3c618904b13c Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 11 Dec 2002 18:20:47 +0000 Subject: [PATCH] Fixed close command (and server finding by conn params) to use port argument correctly. --- CHANGES | 5 +++++ apps/silcd/idlist.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 1f05538e..5c44161c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen + + * Fixed close command to use the port correctly when closing + server connections. Affected file silcd/idlist.c. + Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen * Fixed double free in SKE library error hadling when signature diff --git a/apps/silcd/idlist.c b/apps/silcd/idlist.c index 7f72072a..df7eba0a 100644 --- a/apps/silcd/idlist.c +++ b/apps/silcd/idlist.c @@ -227,7 +227,7 @@ silc_idlist_find_server_by_conn(SilcIDList id_list, char *hostname, if (sock && ((sock->hostname && !strcasecmp(sock->hostname, hostname)) || (sock->ip && !strcasecmp(sock->ip, hostname))) - && sock->port == port) + && server->id->port == htons(port)) break; id_cache = NULL; -- 2.24.0