updates
authorPekka Riikonen <priikone@silcnet.org>
Fri, 17 May 2002 09:34:09 +0000 (09:34 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 17 May 2002 09:34:09 +0000 (09:34 +0000)
apps/silcd/packet_receive.c
lib/silcclient/command_reply.c

index 310a14dacce32c90267014699b709e16e03b5f0b..9a0a7ba802671f962dc7216466d5dc2f1b7e9b57 100644 (file)
@@ -813,7 +813,7 @@ void silc_server_notify(SilcServer server,
 
        /* Now match the public key we have cached and public key sent.
           They must match. */
-       if (client->data.public_key && 
+       if (client && client->data.public_key && 
            !silc_pkcs_public_key_compare(channel->founder_key,
                                          client->data.public_key)) {
          mode &= ~SILC_CHANNEL_UMODE_CHANFO;
index 10ca6f960fa3b9f3e1d98fd7a2e543480ef5a6dd..1e2a21fffda97db884d94702c578f87cf85725e3 100644 (file)
@@ -905,7 +905,7 @@ SILC_CLIENT_CMD_REPLY_FUNC(join)
   }
 
   argc = silc_argument_get_arg_num(cmd->args);
-  if (argc < 7 || argc > 15) {
+  if (argc < 7) {
     SAY(cmd->client, conn, SILC_CLIENT_MESSAGE_ERROR,
        "Cannot join channel: Bad reply packet");
     COMMAND_REPLY_ERROR;