From: Pekka Riikonen Date: Wed, 11 Dec 2002 18:20:47 +0000 (+0000) Subject: Fixed close command (and server finding by conn params) to use X-Git-Tag: silc.client.0.9.11~41 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=a24106a2c03c42b2f8af9e36854d3c618904b13c;p=silc.git Fixed close command (and server finding by conn params) to use port argument correctly. --- 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;