forked from osmocom/wireshark
Don't call g_ascii_strcasecmp() with an NULL string.
Change-Id: I6efbdcb51efe5f2db233827e32e2105db6322d6c Reviewed-on: https://code.wireshark.org/review/15946 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
83b2d5e00f
commit
79aab9232b
|
@ -2714,16 +2714,16 @@ static void dissect_sip_p_access_network_info_header(tvbuff_t *tvb, proto_tree *
|
|||
par_name_end_offset = equals_offset;
|
||||
/* Extract the parameter name */
|
||||
param_name = tvb_get_string_enc(wmem_packet_scope(), tvb, current_offset, par_name_end_offset - current_offset, ENC_UTF_8 | ENC_NA);
|
||||
/* Access-Info fields */
|
||||
if ((param_name != NULL)&&(g_ascii_strcasecmp(param_name, "utran-cell-id-3gpp") == 0)) {
|
||||
proto_tree_add_item(tree, hf_sip_p_acc_net_i_ucid_3gpp, tvb,
|
||||
equals_offset + 1, semi_colon_offset - equals_offset - 1, ENC_UTF_8 | ENC_NA);
|
||||
}
|
||||
else {
|
||||
proto_tree_add_format_text(tree, tvb, current_offset, length);
|
||||
}
|
||||
}
|
||||
|
||||
/* Access-Info fields */
|
||||
if (g_ascii_strcasecmp(param_name, "utran-cell-id-3gpp") == 0) {
|
||||
proto_tree_add_item(tree, hf_sip_p_acc_net_i_ucid_3gpp, tvb,
|
||||
equals_offset + 1, semi_colon_offset - equals_offset - 1, ENC_UTF_8 | ENC_NA);
|
||||
}
|
||||
else{
|
||||
proto_tree_add_format_text(tree, tvb, current_offset, length);
|
||||
}
|
||||
current_offset = semi_colon_offset + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue