The test for NULL was to see whether struct had ever been allocated,
not for detecting a failed allocation...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31681
f5534014-38df-0310-8fa8-
9805f1628bb7
/* Resuse or create RLC info */
p_rlc_lte_info = p_get_proto_data(pinfo->fd, proto_rlc_lte);
/* Resuse or create RLC info */
p_rlc_lte_info = p_get_proto_data(pinfo->fd, proto_rlc_lte);
+ if (p_rlc_lte_info == NULL) {
+ p_rlc_lte_info = se_alloc0(sizeof(struct rlc_lte_info));
+ }
/* Fill in struct details for srb channels */
p_rlc_lte_info->rlcMode = mode;
/* Fill in struct details for srb channels */
p_rlc_lte_info->rlcMode = mode;