aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
diff options
context:
space:
mode:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-14 20:55:11 +0000
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-14 20:55:11 +0000
commitaa0e4132ca2dda860ffaab66d5099538afaa7bc6 (patch)
tree680d95df3823227596112df5bcf0c1c676e033e3 /epan/dissectors/packet-wsp.c
parent56ec852f965b8a19cf011ad3e702ec7b5d11f6f6 (diff)
Attempt to fix bug 1360.
Remove calls to tvb_free on subsets, since this seems to upset the tvb administration(!?) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21772 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-wsp.c')
-rw-r--r--epan/dissectors/packet-wsp.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c
index 15c07a204d..6f3758ec9c 100644
--- a/epan/dissectors/packet-wsp.c
+++ b/epan/dissectors/packet-wsp.c
@@ -1180,7 +1180,7 @@ static const true_false_string yes_no_truth = {
static const value_string vals_false_true[] = {
{ 0, "False" },
{ 1, "True" },
- { 0, NULL },
+ { 0, NULL }
};
enum {
@@ -1706,7 +1706,7 @@ static const hdr_parse_func_ptr WellKnownOpenwaveHeader[128] = {
/* 0x78 */ wkh_openwave_default, /* 0x79 */ wkh_openwave_default,
/* 0x7A */ wkh_openwave_default, /* 0x7B */ wkh_openwave_default,
/* 0x7C */ wkh_openwave_default, /* 0x7D */ wkh_openwave_default,
- /* 0x7E */ wkh_openwave_default, /* 0x7F */ wkh_openwave_default,
+ /* 0x7E */ wkh_openwave_default, /* 0x7F */ wkh_openwave_default
};
@@ -4909,7 +4909,6 @@ dissect_sir(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* WSP contact point list */
tmp_tvb = tvb_new_subset (tvb, offset, val_len, val_len);
add_addresses(subtree, tmp_tvb, hf_sir_wsp_contact_points);
- tvb_free(tmp_tvb);
/* End of version 0 SIR content */
if (version == 0)
@@ -4925,7 +4924,6 @@ dissect_sir(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Non-WSP contact point list */
tmp_tvb = tvb_new_subset (tvb, offset, val_len, val_len);
add_addresses(subtree, tmp_tvb, hf_sir_contact_points);
- tvb_free(tmp_tvb);
offset += val_len;
@@ -7332,7 +7330,7 @@ proto_register_wsp(void)
FT_STRING, BASE_NONE, NULL, 0x00,
"Charset parameter", HFILL
}
- },
+ }
};
/* Setup protocol subtree array */
@@ -7348,7 +7346,7 @@ proto_register_wsp(void)
&ett_multiparts,
&ett_mpartlist,
&ett_addresses, /* Addresses */
- &ett_address, /* Single address */
+ &ett_address /* Single address */
};
/* Register the protocol name and description */
@@ -7509,12 +7507,12 @@ proto_register_sir(void)
FT_BYTES, BASE_HEX, NULL, 0x00,
"CPITag (OTA-HTTP)", HFILL
}
- },
+ }
};
/* Setup protocol subtree array */
static gint *ett[] = {
- &ett_sir, /* Session Initiation Request */
+ &ett_sir /* Session Initiation Request */
};
/* Register the dissector */