X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fidlist.c;h=07e060cc94f0d9ae8431ad0ba3512acb400c593e;hb=622dbba14878964ca76301bdf9c8f59f3312fbc7;hp=875b808c63c5ec8aa68264006cac784d59a09924;hpb=bb8673d141d95f7b3f8fbd623fef0872baf32cd1;p=silc.git diff --git a/lib/silcclient/idlist.c b/lib/silcclient/idlist.c index 875b808c..07e060cc 100644 --- a/lib/silcclient/idlist.c +++ b/lib/silcclient/idlist.c @@ -298,8 +298,6 @@ void silc_client_get_clients_by_list(SilcClient client, silc_free(client_id); silc_buffer_pull(client_id_list, idp_len); } - silc_buffer_push(client_id_list, client_id_list->data - - client_id_list->head); /* Query the client information from server if the list included clients that we don't know about. */ @@ -320,6 +318,8 @@ void silc_client_get_clients_by_list(SilcClient client, silc_client_command_get_clients_list_callback, (void *)in); + silc_buffer_push(client_id_list, client_id_list->data - + client_id_list->head); silc_buffer_free(res_cmd); silc_free(res_argv); silc_free(res_argv_lens); @@ -327,6 +327,9 @@ void silc_client_get_clients_by_list(SilcClient client, return; } + silc_buffer_push(client_id_list, client_id_list->data - + client_id_list->head); + /* We have the clients in cache, get them and call the completion */ silc_client_command_get_clients_list_callback((void *)in); }