X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.c;h=e5f6d0a40410a72789ba8abd4374d567ddbf0055;hb=8e1bcf91e119deb125ee1ff058907e563d9d245b;hp=c053236d89e04fc73886ac5d8f8d727ce92a4305;hpb=43192810da1bde0bf9c7172c57cd3fadf142d1b3;p=silc.git diff --git a/apps/silcd/command.c b/apps/silcd/command.c index c053236d..e5f6d0a4 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -1173,7 +1173,7 @@ SILC_SERVER_CMD_FUNC(invite) /* Get the invite information */ tmp = silc_argument_get_arg_type(cmd->args, 4, &len); - if (tmp) { + if (tmp && len > 2) { /* Parse the arguments to see they are constructed correctly */ SILC_GET16_MSB(argc, tmp); args = silc_argument_payload_parse(tmp + 2, len - 2, argc); @@ -4148,7 +4148,7 @@ SILC_SERVER_CMD_FUNC(ban) /* Get the ban information */ tmp = silc_argument_get_arg_type(cmd->args, 3, &len); - if (tmp) { + if (tmp && len > 2) { /* Parse the arguments to see they are constructed correctly */ SILC_GET16_MSB(argc, tmp); args = silc_argument_payload_parse(tmp + 2, len - 2, argc);