Reject the packet if data is NULL.
svn path=/trunk/; revision=53898
This commit is contained in:
parent
ca174aedf2
commit
c5e358116c
|
@ -396,7 +396,12 @@ static const value_string diameter_3gpp2_exp_res_vals[]= {
|
||||||
static int
|
static int
|
||||||
dissect_diameter_3gpp2_exp_res(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data) {
|
dissect_diameter_3gpp2_exp_res(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data) {
|
||||||
proto_item *pi;
|
proto_item *pi;
|
||||||
diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
|
diam_sub_dis_t *diam_sub_dis;
|
||||||
|
|
||||||
|
/* Reject the packet if data is NULL */
|
||||||
|
if (data == NULL)
|
||||||
|
return 0;
|
||||||
|
diam_sub_dis = (diam_sub_dis_t*)data;
|
||||||
|
|
||||||
pi = proto_tree_add_item(tree, hf_diameter_3gpp2_exp_res, tvb, 0, 4, ENC_BIG_ENDIAN);
|
pi = proto_tree_add_item(tree, hf_diameter_3gpp2_exp_res, tvb, 0, 4, ENC_BIG_ENDIAN);
|
||||||
diam_sub_dis->avp_str = (char *)wmem_alloc(wmem_packet_scope(), ITEM_LABEL_LENGTH+1);
|
diam_sub_dis->avp_str = (char *)wmem_alloc(wmem_packet_scope(), ITEM_LABEL_LENGTH+1);
|
||||||
|
|
|
@ -1594,8 +1594,12 @@ dissect_fcdns (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
|
||||||
conversation_t *conversation;
|
conversation_t *conversation;
|
||||||
fcdns_conv_data_t *cdata;
|
fcdns_conv_data_t *cdata;
|
||||||
fcdns_conv_key_t ckey, *req_key;
|
fcdns_conv_key_t ckey, *req_key;
|
||||||
fc_hdr *fchdr = (fc_hdr *)data;
|
fc_hdr *fchdr;
|
||||||
|
|
||||||
|
/* Reject the packet if data is NULL */
|
||||||
|
if (data == NULL)
|
||||||
|
return 0;
|
||||||
|
fchdr = (fc_hdr *)data;
|
||||||
|
|
||||||
tvb_memcpy (tvb, (guint8 *)&cthdr, offset, FCCT_PRMBL_SIZE);
|
tvb_memcpy (tvb, (guint8 *)&cthdr, offset, FCCT_PRMBL_SIZE);
|
||||||
cthdr.revision = tvb_get_guint8 (tvb, offset);
|
cthdr.revision = tvb_get_guint8 (tvb, offset);
|
||||||
|
|
Loading…
Reference in New Issue