Debug fixes
authorPekka Riikonen <priikone@silcnet.org>
Wed, 24 Nov 2004 16:09:07 +0000 (16:09 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 24 Nov 2004 16:09:07 +0000 (16:09 +0000)
apps/silcd/silcd.c

index 131665c11eddf0870da8f782ecb0e1028089b30b..42e4088292b299fc7673dbb77287654b2784d1d3 100644 (file)
@@ -392,11 +392,7 @@ SILC_TASK_CALLBACK(dump_stats)
        c = 1;
        while (id_cache) {
          client_entry = (SilcClientEntry)id_cache->context;
-         if (client_entry->connection)
-           server_entry =
-             ((SilcSocketConnection)client_entry->connection)->user_data;
-         else
-           server_entry = NULL;
+         server_entry = client_entry->router;
          fprintf(fdd, "  %d: name %s id %s status 0x%x from %s\n", c,
                  client_entry->nickname ? client_entry->nickname :
                  (unsigned char *)"N/A", client_entry->id ?
@@ -417,11 +413,7 @@ SILC_TASK_CALLBACK(dump_stats)
        c = 1;
        while (id_cache) {
          client_entry = (SilcClientEntry)id_cache->context;
-         if (client_entry->connection)
-           server_entry =
-             ((SilcSocketConnection)client_entry->connection)->user_data;
-         else
-           server_entry = NULL;
+         server_entry = client_entry->router;
          fprintf(fdd, "  %d: name %s id %s status 0x%x from %s\n", c,
                  client_entry->nickname ? client_entry->nickname :
                  (unsigned char *)"N/A", client_entry->id ?