diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-05-08 17:19:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-05-08 17:19:42 +0000 |
commit | 299ae9654eec953f913e49d5129e94a7bf408a66 (patch) | |
tree | 74957941f8ec5c60fac8f69b42cde3974fbd7e0b /packet-h1.c | |
parent | 740bb555218c38f90f5880fd3f47d478c89240fe (diff) | |
download | wireshark-299ae9654eec953f913e49d5129e94a7bf408a66.tar.gz wireshark-299ae9654eec953f913e49d5129e94a7bf408a66.tar.bz2 wireshark-299ae9654eec953f913e49d5129e94a7bf408a66.zip |
Fix from Gerrit Gehnen.
svn path=/trunk/; revision=1924
Diffstat (limited to 'packet-h1.c')
-rw-r--r-- | packet-h1.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packet-h1.c b/packet-h1.c index 894b98935b..ec5d8999b5 100644 --- a/packet-h1.c +++ b/packet-h1.c @@ -2,7 +2,7 @@ * Routines for Sinec H1 packet disassembly * Gerrit Gehnen <G.Gehnen@atrie.de> * - * $Id: packet-h1.c,v 1.6 2000/05/05 09:32:05 guy Exp $ + * $Id: packet-h1.c,v 1.7 2000/05/08 17:19:42 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -110,7 +110,7 @@ dissect_h1 (const u_char * pd, int offset, frame_data * fd, proto_tree * tree) proto_tree *response_tree = NULL; proto_tree *empty_tree = NULL; - unsigned int position = 2; + unsigned int position = 3; if (!(pd[offset] == 'S' && pd[offset + 1] == '5')) { return FALSE; @@ -233,8 +233,10 @@ dissect_h1 (const u_char * pd, int offset, frame_data * fd, proto_tree * tree) } break; default: - /* TODO: Add Default Handler. */ - break; + /* This is not a valid telegram. So cancel dissection + and try the next dissector */ + return FALSE; + break; } position += pd[offset + position + 1]; /* Goto next section */ } /* ..while */ |