Select correct bytes range for Algorithms tree.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 7 May 2008 10:22:48 +0000 (10:22 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 7 May 2008 10:22:48 +0000 (10:22 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25251 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ssh.c

index 34151fd34380d82942e0f65717527cd5f380a01c..7963b963b5c5ed825f42c94b4e583cac8792379b 100644 (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 *