Fix condition for expert info (CID-1025920)

The expert info refers to encoding_id not being zero. So then
test for it.

Change-Id: I6692f0b6ac0275328bc84741d9ded094bdf25e31
Reviewed-on: https://code.wireshark.org/review/15769
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Jaap Keuter 2016-06-07 22:45:20 +02:00 committed by Anders Broman
parent e62e696774
commit e84b0fdb5f
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ void fec_decode_ext_fti(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
else {
proto_tree_add_uint64(tree, hf_fti_transfer_length, tvb, offset+2, 6, transfer_length);
ti = proto_tree_add_item(tree, hf_instance_id, tvb, offset+8, 2, ENC_BIG_ENDIAN);
if ((encoding_id < 128) && (instance_id != 0)) {
if ((encoding_id < 128) && (encoding_id != 0)) {
expert_add_info(pinfo, ti, &ei_fec_encoding_id);
}
}