From dc71f61a1d0be9d15e1ead5482523b6d1902109b Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 1 Feb 2001 22:55:04 +0000 Subject: [PATCH] update. --- CHANGES | 8 ++++++++ apps/silcd/command.c | 6 ++++++ lib/silcclient/client.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index e52c265c..bb850d84 100644 --- a/CHANGES +++ b/CHANGES @@ -11,6 +11,14 @@ Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen separately in the same function earlier. Affects file silcd/packet_send.c and all channel packet sending functions. + * In USERS reply, res_argv[i] are not allocated, the table + is allocated. Thus changed that free the table, not its + internals. + + * In server's whois_check and identify_check if the client is + locally connected do not send any WHOIS commands - they are not + needed. + Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen * Fixed some minor bugs in client when sending WHOIS command. The diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 31420b44..656cf67c 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -394,6 +394,9 @@ silc_server_command_whois_check(SilcServerCommandContext cmd, if (!entry->nickname || !entry->username || !entry->userinfo) { SilcBuffer tmpbuf; unsigned short old_ident; + + if (!entry->router) + continue; old_ident = silc_command_get_ident(cmd->payload); silc_command_set_ident(cmd->payload, silc_rng_get_rn16(server->rng)); @@ -806,6 +809,9 @@ silc_server_command_identify_check(SilcServerCommandContext cmd, SilcBuffer tmpbuf; unsigned short old_ident; + if (!entry->router) + continue; + old_ident = silc_command_get_ident(cmd->payload); silc_command_set_ident(cmd->payload, silc_rng_get_rn16(server->rng)); silc_command_set_command(cmd->payload, SILC_COMMAND_WHOIS); diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index 8403f44a..9b3bba3e 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -1326,7 +1326,7 @@ void silc_client_notify_by_server(SilcClient client, SilcPacketContext *p = silc_packet_context_dup(packet); p->context = (void *)client; p->sock = sock; - silc_client_command_pending(conn,SILC_COMMAND_WHOIS, 0, + silc_client_command_pending(conn, SILC_COMMAND_WHOIS, 0, silc_client_notify_by_server_pending, p); goto out; } -- 2.43.0