diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-05-31 02:27:40 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-05-31 02:27:40 +0000 |
commit | 813dcf79a15d6527cce8a6a7bac4234de6ab577f (patch) | |
tree | 61d470e109d2d9ec56de51b710d40cfec28bbdb4 /asn1/t124 | |
parent | eb8217a3719ac13efaa7cbf55996e3eccb4a386f (diff) |
Don't intentionally use -1 as an hfindex: while only naughty before, with the
changes from r49644 you'll get complaints about the hf being unregistered...
Note that this code also intentionally passes -1 as an ett_index. It doesn't
currently complain so I'm leaving it alone for now...
svn path=/trunk/; revision=49648
Diffstat (limited to 'asn1/t124')
-rw-r--r-- | asn1/t124/packet-t124-template.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/asn1/t124/packet-t124-template.c b/asn1/t124/packet-t124-template.c index a3ed615420..8fe86801a3 100644 --- a/asn1/t124/packet-t124-template.c +++ b/asn1/t124/packet-t124-template.c @@ -163,9 +163,11 @@ dissect_t124_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, vo * to have a version of dissect_per_sequence() that checks all * references to the tvbuff before making them and returning "no" * if they would fail. + * + * We (ab)use hf_t124_connectGCCPDU here just to give a valid entry... */ TRY { - (void) dissect_per_sequence(tvb, 0, &asn1_ctx, NULL, -1, -1, t124Heur_sequence); + (void) dissect_per_sequence(tvb, 0, &asn1_ctx, NULL, hf_t124_connectGCCPDU, -1, t124Heur_sequence); } CATCH_BOUNDS_ERRORS { failed = TRUE; } ENDTRY; |