X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient.c;h=becb0829d527ae34de7537aa173961e4375c699e;hb=57fe1d5d88e8687ac876aa3725028bd3343f5067;hp=2619df2671b66c5d6e6b82c61bb2948f21dbcd41;hpb=ed3133837d3466b1d9eb15278677d82971bbd35f;p=silc.git diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index 2619df26..becb0829 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -1543,15 +1543,17 @@ static void silc_client_resume_session_cb(SilcClient client, SILC_CLIENT_CONN_SUCCESS_RESUME : SILC_CLIENT_CONN_ERROR); - /* Issue INFO command to fetch the real server name and server - information and other stuff. */ - silc_client_command_register(client, SILC_COMMAND_INFO, NULL, NULL, - silc_client_command_reply_info_i, 0, - ++conn->cmd_ident); - sidp = silc_id_payload_encode(conn->remote_id, SILC_ID_SERVER); - silc_client_command_send(client, conn, SILC_COMMAND_INFO, - conn->cmd_ident, 1, 2, sidp->data, sidp->len); - silc_buffer_free(sidp); + if (success) { + /* Issue INFO command to fetch the real server name and server + information and other stuff. */ + silc_client_command_register(client, SILC_COMMAND_INFO, NULL, NULL, + silc_client_command_reply_info_i, 0, + ++conn->cmd_ident); + sidp = silc_id_payload_encode(conn->remote_id, SILC_ID_SERVER); + silc_client_command_send(client, conn, SILC_COMMAND_INFO, + conn->cmd_ident, 1, 2, sidp->data, sidp->len); + silc_buffer_free(sidp); + } } /* Processes the received new Client ID from server. Old Client ID is