updates.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 7 Jan 2002 18:58:15 +0000 (18:58 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 7 Jan 2002 18:58:15 +0000 (18:58 +0000)
apps/silcd/command.c
doc/draft-riikonen-silc-pp-05.nroff

index cb487e23880534f81c4212f61c830107fb8efe8c..c4bad1acfe4d9fe4db0ad7064069b3e9ddae3814 100644 (file)
@@ -498,6 +498,8 @@ silc_server_command_whois_parse(SilcServerCommandContext cmd,
     (*client_id)[0] = silc_id_payload_parse_id(tmp, len);
     if ((*client_id)[0] == NULL) {
       silc_free(*client_id);
+      silc_server_command_send_status_reply(cmd, command,
+                                           SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
       return FALSE;
     }
     *client_id_count = 1;
@@ -515,6 +517,9 @@ silc_server_command_whois_parse(SilcServerCommandContext cmd,
            for (i = 0; i < *client_id_count; i++)
              silc_free((*client_id)[i]);
            silc_free(*client_id);
+           silc_server_command_send_status_reply(
+                                        cmd, command,
+                                        SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
            return FALSE;
          }
          (*client_id_count)++;
index 23669b93a456d613db741941fe7e8e5155084960..c8a5a9082ddfd15231744edcfadc2c97cf501e49 100644 (file)
@@ -131,7 +131,7 @@ Figure 6:   Public Key Payload
 Figure 7:   Disconnect Payload
 Figure 8:   Success Payload
 Figure 9:   Failure Payload
-Figure 10:   Reject Payload
+Figure 10:  Reject Payload
 Figure 11:  Notify Payload
 Figure 12:  Error Payload
 Figure 13:  Channel Message Payload