Commit 4d74090a authored by Niels Möller's avatar Niels Möller
Browse files

* src/keyexchange.c (parse_kexinit): Use the improved

parse_atom_list() function.

Rev: src/keyexchange.c:1.51
parent 874d2594
......@@ -70,7 +70,6 @@ static struct kexinit *parse_kexinit(struct lsh_string *packet)
{
NEW(kexinit, res);
struct simple_buffer buffer;
struct simple_buffer sub_buffer;
unsigned msg_number;
UINT32 reserved;
......@@ -94,8 +93,7 @@ static struct kexinit *parse_kexinit(struct lsh_string *packet)
for (i = 0; i<NLISTS; i++)
{
if (!parse_sub_buffer(&buffer, &sub_buffer)
|| !(lists[i] = parse_atom_list(&sub_buffer, KEXINIT_MAX_ALGORITMS)))
if ( !(lists[i] = parse_atom_list(&buffer, KEXINIT_MAX_ALGORITMS)))
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment