Select correct bytes range for Algorithms tree.

svn path=/trunk/; revision=25251
This commit is contained in:
Martin Mathieson 2008-05-07 10:22:48 +00:00
parent 607076675a
commit fbefbac6fa
1 changed files with 7 additions and 1 deletions

View File

@ -704,8 +704,9 @@ ssh_dissect_key_init(tvbuff_t *tvb, int offset, proto_tree *tree )
{
guint len;
int i;
int start_offset = offset;
proto_item *tf;
proto_item *tf = NULL;
proto_item *key_init_tree=NULL;
if (tree) {
@ -729,6 +730,11 @@ ssh_dissect_key_init(tvbuff_t *tvb, int offset, proto_tree *tree )
}
offset+=len;
}
if (tf != NULL) {
proto_item_set_len(tf, offset-start_offset);
}
return offset;
}
proto_item *