aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cops.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-10-04 18:21:04 +0000
committerGuy Harris <guy@alum.mit.edu>2005-10-04 18:21:04 +0000
commit399bf74c47d3f6b2b45a070b58bc2df0ff525dc2 (patch)
tree1e5db01ba103fa3d77bf7c2d9bd1f34376217c31 /epan/dissectors/packet-cops.c
parente1549f4f18f977bae439cbe7af3c1ebf7d32799c (diff)
Even a null object has a non-zero length (for the BER identifier and
length); update the offset when dissecting one. svn path=/trunk/; revision=16118
Diffstat (limited to 'epan/dissectors/packet-cops.c')
-rw-r--r--epan/dissectors/packet-cops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cops.c b/epan/dissectors/packet-cops.c
index 37a794343b..04b92f65ab 100644
--- a/epan/dissectors/packet-cops.c
+++ b/epan/dissectors/packet-cops.c
@@ -1496,7 +1496,7 @@ static int decode_cops_pr_asn1_data(tvbuff_t *tvb,packet_info *pinfo, guint32 of
break;
case COPS_NULL:
- dissect_ber_null(FALSE, pinfo, tree,tvb, start, -1);
+ offset = dissect_ber_null(FALSE, pinfo, tree,tvb, start, -1);
length = offset - vb_value_start;
if (tree)
proto_tree_add_text(tree, tvb, vb_value_start, length, "Value: %s", vb_type_name);