LNet: fix memory illegal access reported by Coverity (CID 1427262)
Change-Id: Iad925f32364eb9fb21da7032284044469dcbddc5 Reviewed-on: https://code.wireshark.org/review/25241 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
997cf938bd
commit
4e13791a09
|
@ -400,8 +400,9 @@ dissect_csum(tvbuff_t * tvb, packet_info *pinfo, proto_tree *tree, int offset, g
|
|||
break;
|
||||
|
||||
default:
|
||||
expert_add_info_format(pinfo, NULL, &ei_lnet_type, "Checksum for unprocessed type: %s",
|
||||
val_to_str(lnd_type, lndnames, "Unknown(%d)"));
|
||||
ti = proto_tree_add_expert_format(tree, pinfo, &ei_lnet_type, tvb, offset, 4,
|
||||
"Checksum for unprocessed type: %s",
|
||||
val_to_str(lnd_type, lndnames, "Unknown(%d)"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue