global ID list for the channel as it might not be in the local
list. Fixed a bug related to LEAVE command.
+ * Is this the end of the [<unknown>] buglet that has been lurking
+ around for a long time? A little for loop fix in server's
+ silc_server_command_whois_parse that is used by both IDENTIFY
+ and WHOIS command. At least, this was a clear bug and a cause
+ of one type of [<unknown>] buglet.
+
Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
* Added --with-gmp configuration option. If set the GMP
/* Take all ID's from the command packet */
if (argc > 3) {
- for (k = 1, i = 4; i < argc; i++) {
+ for (k = 1, i = 4; i < argc + 1; i++) {
tmp = silc_argument_get_arg_type(cmd->args, i, &len);
if (tmp) {
*client_id = silc_realloc(*client_id, sizeof(**client_id) *
(*client_id_count + 1));
(*client_id)[k] = silc_id_payload_parse_id(tmp, len);
if ((*client_id)[k] == NULL) {
- for (i = 0; i < k; i++)
+ /* Cleanup all and fail */
+ for (i = 0; i < *client_id_count; i++)
silc_free((*client_id)[i]);
silc_free(*client_id);
return FALSE;