From: Pekka Riikonen Date: Thu, 6 Nov 2003 11:35:26 +0000 (+0000) Subject: Take attributes only once. X-Git-Tag: silc.toolkit.0.9.11~27 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=21448342d180c328141d1f7e3e56b0e81a2d173c Take attributes only once. --- diff --git a/apps/silcd/server_query.c b/apps/silcd/server_query.c index 7ec5daf0..6d9c1111 100644 --- a/apps/silcd/server_query.c +++ b/apps/silcd/server_query.c @@ -363,7 +363,7 @@ void silc_server_query_parse(SilcServer server, SilcServerQuery query) case SILC_COMMAND_WHOIS: /* Get requested attributes if set */ tmp = silc_argument_get_arg_type(cmd->args, 3, &tmp_len); - if (tmp && tmp_len <= SILC_ATTRIBUTE_MAX_REQUEST_LEN) { + if (tmp && !query->attrs && tmp_len <= SILC_ATTRIBUTE_MAX_REQUEST_LEN) { query->attrs = silc_attribute_payload_parse(tmp, tmp_len); /* When Requested Attributes is present we will assure that this