diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-28 03:36:37 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-28 03:36:37 +0000 |
commit | 2c11736a65ad4b0378ad435efaa13c41fa93023b (patch) | |
tree | a0998f2d04b2f4bb7c8a3b2a6126929021a5fe6f /packet-ethertype.c | |
parent | 715fdf3ad39a91fd6ff49fb1297630b532b6348b (diff) |
Catch any exceptions that add_ethernet_trailer() throws in add_dix_trailer().
Otherwise, they're caught by ethertype() which results in an infinite loop.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9893 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ethertype.c')
-rw-r--r-- | packet-ethertype.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ethertype.c b/packet-ethertype.c index 7df50ceda7..bb63134ff7 100644 --- a/packet-ethertype.c +++ b/packet-ethertype.c @@ -1,7 +1,7 @@ /* ethertype.c * Routines for calling the right protocol for the ethertype. * - * $Id: packet-ethertype.c,v 1.41 2003/11/27 21:09:42 guy Exp $ + * $Id: packet-ethertype.c,v 1.42 2004/01/28 03:36:37 gerald Exp $ * * Gilbert Ramirez <gram@alumni.rice.edu> * @@ -273,12 +273,12 @@ add_dix_trailer(proto_tree *fh_tree, int trailer_id, tvbuff_t *tvb, /* The packet doesn't have "length" bytes worth of captured data left in it. No trailer to display. */ trailer_tvb = NULL; + add_ethernet_trailer(fh_tree, trailer_id, tvb, trailer_tvb, fcs_len); } ENDTRY; } else trailer_tvb = NULL; /* no trailer */ - add_ethernet_trailer(fh_tree, trailer_id, tvb, trailer_tvb, fcs_len); } void |