{
SilcPacketContext *p = (SilcPacketContext *)context;
silc_client_notify_by_server(p->context, p->sock, p);
+ silc_socket_free(p->sock);
}
/* Destructor for the pending command callback */
SilcBuffer idp = silc_id_payload_encode(client_id, SILC_ID_CLIENT);
p->context = (void *)client;
- p->sock = conn->sock;
+ p->sock = silc_socket_dup(conn->sock);
silc_client_send_command(client, conn, SILC_COMMAND_WHOIS, ++conn->cmd_ident,
1, 3, idp->data, idp->len);
SilcChannelUser chu;
SilcIDCacheEntry id_cache = NULL;
unsigned char *tmp;
- unsigned int tmp_len, mode;
+ uint32 tmp_len, mode;
payload = silc_notify_payload_parse(buffer);
if (!payload)
* from channels as they quit as well.
*/
SilcClientEntry *clients = NULL;
- unsigned int clients_count = 0;
+ uint32 clients_count = 0;
int i;
for (i = 1; i < silc_argument_get_arg_num(args); i++) {