X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcmap%2Fsilcmap_client.c;h=651bd5647b827a74001f4272cf487d6d378af43c;hp=3eec5110993601674430cacc3d51639791b1e3d0;hb=ed46e908363484cad4403d6828aec342b4b82c10;hpb=816a5b080c797c0db47b7b274a85646343c3466e diff --git a/apps/silcmap/silcmap_client.c b/apps/silcmap/silcmap_client.c index 3eec5110..651bd564 100644 --- a/apps/silcmap/silcmap_client.c +++ b/apps/silcmap/silcmap_client.c @@ -305,7 +305,8 @@ static void silc_channel_message(SilcClient client, SilcClientConnection conn, SilcClientEntry sender, SilcChannelEntry channel, SilcMessagePayload payload, - SilcMessageFlags flags, const unsigned char *message, + SilcChannelPrivateKey key, SilcMessageFlags flags, + const unsigned char *message, SilcUInt32 message_len) { @@ -407,7 +408,7 @@ silc_command_reply(SilcClient client, SilcClientConnection conn, SilcUInt32 stats_len = va_arg(va, SilcUInt32); SilcBufferStruct buf; - SILC_LOG_DEBUG(("STATS command reply")); + SILC_LOG_DEBUG(("STATS command reply from %s", conn->sock->hostname)); /* Get statistics structure */ silc_buffer_set(&buf, stats, stats_len); @@ -445,6 +446,7 @@ silc_command_reply(SilcClient client, SilcClientConnection conn, break; default: + SILC_LOG_DEBUG(("Unsupported command reply")); break; }; @@ -479,7 +481,7 @@ silc_connected(SilcClient client, SilcClientConnection conn, silc_schedule_task_del_by_context(client->schedule, mapconn); - if (status == SILC_CLIENT_CONN_ERROR) { + if (status != SILC_CLIENT_CONN_SUCCESS) { fprintf(stderr, "Could not connect to server %s\n", conn->remote_host ? conn->remote_host : ""); silc_client_close_connection(client, conn);