Have a filled COL_INFO, even if tree is NULL

svn path=/trunk/; revision=23966
This commit is contained in:
Jaap Keuter 2007-12-29 00:55:01 +00:00
parent 39dfc7b4db
commit 3f431f9dfb
1 changed files with 3 additions and 5 deletions

View File

@ -2304,12 +2304,10 @@ dissect_pcep_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCEP");
/* Clear out stuff in the info column */
if(check_col(pinfo->cinfo,COL_INFO))
if (check_col(pinfo->cinfo,COL_INFO))
col_clear(pinfo->cinfo,COL_INFO);
if (tree) {
dissect_pcep_msg_tree(tvb, tree, ett_pcep, pinfo);
}
dissect_pcep_msg_tree(tvb, tree, ett_pcep, pinfo);
}
static void
@ -2319,7 +2317,7 @@ dissect_pcep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissect_pcep_pdu);
}
/*Register le protocol with wireshark*/
/*Register the protocol with wireshark*/
void
proto_register_pcep(void){