Size passed to IP address fields is now fixed (reported AVP size includes 2 bytes of padding), causing assertion reported in bug 1332.

svn path=/trunk/; revision=20623
This commit is contained in:
Martin Mathieson 2007-01-30 13:39:58 +00:00
parent 3f00cb0e9b
commit 4f6e3c9930
1 changed files with 2 additions and 2 deletions

View File

@ -1917,10 +1917,10 @@ static void dissect_avps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *avp_tree
tvb, offset, 2, FALSE);
if (tvb_get_ntohs(tvb, offset) == 0x0001) {
proto_tree_add_item(avpi_tree, hf_diameter_avp_data_v4addr,
tvb, offset+2, avpDataLength-2, FALSE);
tvb, offset+2, 4, FALSE);
} else if (tvb_get_ntohs(tvb, offset) == 0x0002) {
proto_tree_add_item(avpi_tree, hf_diameter_avp_data_v6addr,
tvb, offset+2, avpDataLength-2, FALSE);
tvb, offset+2, 16, FALSE);
} else {
proto_tree_add_bytes_format(avpi_tree, hf_diameter_avp_data_bytes,
tvb, offset, avpDataLength,