aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ajp13.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-06-04 13:52:46 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-06-04 13:52:46 +0000
commitb69547925ff7bdd87b52c73496ad7d356c6f115a (patch)
tree49f55080f639dc3217e81b3ef7a529109fbb374a /epan/dissectors/packet-ajp13.c
parent2a30b1eff977d00dd5d204d24a7f4f2745f14b0b (diff)
Get rid of a couple of warnings.
svn path=/trunk/; revision=43066
Diffstat (limited to 'epan/dissectors/packet-ajp13.c')
-rw-r--r--epan/dissectors/packet-ajp13.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ajp13.c b/epan/dissectors/packet-ajp13.c
index 4b582e3696..643dc9c392 100644
--- a/epan/dissectors/packet-ajp13.c
+++ b/epan/dissectors/packet-ajp13.c
@@ -783,7 +783,7 @@ dissect_ajp13_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
cd = (ajp13_conv_data*)conversation_get_proto_data(conv, proto_ajp13);
if (!cd) {
- cd = se_alloc(sizeof(ajp13_conv_data));
+ cd = se_new(ajp13_conv_data);
cd->content_length = 0;
cd->was_get_body_chunk = FALSE;
conversation_add_proto_data(conv, proto_ajp13, cd);
@@ -800,7 +800,7 @@ dissect_ajp13_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* time we've see the packet, and it must be the first "in order"
* pass through the data.
*/
- fd = se_alloc(sizeof(ajp13_frame_data));
+ fd = se_new(ajp13_frame_data);
p_add_proto_data(pinfo->fd, proto_ajp13, fd);
fd->is_request_body = FALSE;
if (cd->content_length) {