Clear the Info column before fetching anything from the packet, so that

if we throw an exception, the stuff from the protocol atop which LLC
runs isn't still there.

svn path=/trunk/; revision=2826
This commit is contained in:
Guy Harris 2001-01-05 08:43:30 +00:00
parent 40a0f2b3f0
commit b31b5b697b
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* Routines for IEEE 802.2 LLC layer
* Gilbert Ramirez <gram@xiexie.org>
*
* $Id: packet-llc.c,v 1.75 2001/01/03 10:34:41 guy Exp $
* $Id: packet-llc.c,v 1.76 2001/01/05 08:43:30 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -284,6 +284,9 @@ dissect_llc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->fd, COL_PROTOCOL)) {
col_set_str(pinfo->fd, COL_PROTOCOL, "LLC");
}
if (check_col(pinfo->fd, COL_INFO)) {
col_clear(pinfo->fd, COL_INFO);
}
dsap = tvb_get_guint8(tvb, 0);
if (tree) {