Fixed close command (and server finding by conn params) to use
authorPekka Riikonen <priikone@silcnet.org>
Wed, 11 Dec 2002 18:20:47 +0000 (18:20 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 11 Dec 2002 18:20:47 +0000 (18:20 +0000)
port argument correctly.

CHANGES
apps/silcd/idlist.c

diff --git a/CHANGES b/CHANGES
index 1f05538e3bd6f5e2c1194b63dc48a6de1bafdbff..5c44161c44952a9c363f3dab18c65e647b39f2eb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
+
+       * 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 <priikone@silcnet.org>
 
        * Fixed double free in SKE library error hadling when signature
index 7f72072a28ec071ec1df942dfec297f1ef1f7b09..df7eba0a6cc5eeeaeb864c1e693c653afd68fc18 100644 (file)
@@ -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;