nfapi: fix potential crash with nfapi.csi.rs.flag due to type mismatch
Pass a "true_false_string" instead of a "value_string". Change-Id: I371b344fd56925ce242467e37a68ca6e3eb61b93 Fixes: v2.5.0rc0-1331-g1dd0111f5e ("Initial submission of the nfapi dissector") Reviewed-on: https://code.wireshark.org/review/29748 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
f06e904674
commit
d11ea69f0a
|
@ -634,12 +634,6 @@ static const value_string dlsch_re13_pdsch_payload_type_vals[] = {
|
|||
{ 0, NULL }
|
||||
};
|
||||
|
||||
static const value_string csi_rs_flags_strname[] = {
|
||||
{ 0, "CSI - RS parameters are not valid" },
|
||||
{ 1, "CSI - RS parameters are valid" },
|
||||
{ 0, NULL}
|
||||
};
|
||||
|
||||
|
||||
static const value_string paging_direct_indication_differtiation_flag_vals[] = {
|
||||
{ 0, "Direct Information" },
|
||||
|
@ -9975,7 +9969,7 @@ void proto_register_nfapi(void)
|
|||
},
|
||||
{ &hf_nfapi_csi_rs_flag,
|
||||
{ "CSI RS Flag", "nfapi.csi.rs.flag",
|
||||
FT_BOOLEAN, 8, TFS(&csi_rs_flags_strname), 0x0,
|
||||
FT_BOOLEAN, 8, TFS(&tfs_valid_not_valid), 0x0,
|
||||
"Indicates if parameters related to CSI-RS are valid or not.", HFILL }
|
||||
},
|
||||
{ &hf_nfapi_csi_rs_resource_config_r10,
|
||||
|
|
Loading…
Reference in New Issue